Changeset 8dfb59c for commands.c


Ignore:
Timestamp:
Mar 23, 2010, 5:23:43 PM (11 years ago)
Author:
Nelson Elhage <nelhage@ksplice.com>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
38cc669
Parents:
1b1cd2c
git-author:
Nelson Elhage <nelhage@mit.edu> (03/04/10 09:41:04)
git-committer:
Nelson Elhage <nelhage@ksplice.com> (03/23/10 17:23:43)
Message:
Nuke the editwin buffercommand.

This was really just an alternate name for callback data that was
known to be a string. Now that we can safely pass callback data that
needs to be destroyed, it's redundant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r8a921b5 r8dfb59c  
    25662566  /* if we get two arguments, ask for the password */
    25672567  if (argc==2) {
    2568     owl_global_set_buffercommand(&g, argv[1]);
    2569     owl_global_set_buffercallback(&g, &owl_callback_aimlogin);
     2568    owl_editwin_set_cbdata(owl_global_get_typwin(&g),
     2569                           owl_strdup(argv[1]), owl_free);
     2570    owl_editwin_set_callback(owl_global_get_typwin(&g),
     2571                             owl_callback_aimlogin);
    25702572    owl_function_start_password("AIM Password: ");
    25712573    return(NULL);
Note: See TracChangeset for help on using the changeset viewer.