Changeset d4927a7 for commands.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:46 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
3472845
Parents:
ddbbcffa
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:55:10)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:46)
Message:
Replace owl_strdup with g_strdup.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rddbbcffa rd4927a7  
    12741274      argc-=1; argv+=1;
    12751275    } else if (argc>=2 && !strcmp(argv[1], "--filter")) {
    1276       filter = owl_strdup(argv[2]);
     1276      filter = g_strdup(argv[2]);
    12771277      argc-=2; argv+=2;
    12781278    } else if (argc>=2 && !strcmp(argv[1], "--smart-filter")) {
     
    13041304      argc-=1; argv+=1;
    13051305    } else if (argc>=2 && !strcmp(argv[1], "--filter")) {
    1306       filter = owl_strdup(argv[2]);
     1306      filter = g_strdup(argv[2]);
    13071307      argc-=2; argv+=2;
    13081308    } else if (argc>=2 && !strcmp(argv[1], "--smart-filter")) {
     
    16751675    return NULL;
    16761676  }
    1677   newbuff = owl_strdup(skiptokens(buff, 1));
     1677  newbuff = g_strdup(skiptokens(buff, 1));
    16781678  if (!strcmp(argv[0], "(")) {
    16791679    for (i=strlen(newbuff)-1; i>=0; i--) {
     
    25012501  }
    25022502  filtname = owl_view_get_filtname(owl_global_get_current_view(&g));
    2503   if (filtname) return owl_strdup(filtname);
     2503  if (filtname) return g_strdup(filtname);
    25042504  return NULL;
    25052505}
     
    25162516    return NULL;
    25172517  }
    2518   return owl_strdup(tmpbuff);
     2518  return g_strdup(tmpbuff);
    25192519}
    25202520
     
    25762576  if (argc==2) {
    25772577    owl_editwin *e = owl_function_start_password("AIM Password: ");
    2578     owl_editwin_set_cbdata(e, owl_strdup(argv[1]), g_free);
     2578    owl_editwin_set_cbdata(e, g_strdup(argv[1]), g_free);
    25792579    owl_editwin_set_callback(e, owl_callback_aimlogin);
    25802580    return(NULL);
     
    26042604  }
    26052605  stylename = owl_view_get_style_name(owl_global_get_current_view(&g));
    2606   if (stylename) return owl_strdup(stylename);
     2606  if (stylename) return g_strdup(stylename);
    26072607  return NULL;
    26082608}
Note: See TracChangeset for help on using the changeset viewer.