Changeset d4927a7 for functions.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
  • functions.c

    rddbbcffa rd4927a7  
    358358  owl_function_start_edit_win(line,
    359359                              &owl_callback_aimwrite,
    360                               owl_strdup(to),
     360                              g_strdup(to),
    361361                              g_free);
    362362  g_free(line);
     
    436436    owl_zwrite_set_message(z, msg);
    437437  }
    438   old_msg = owl_strdup(owl_zwrite_get_message(z));
     438  old_msg = g_strdup(owl_zwrite_get_message(z));
    439439
    440440  zcrypt = owl_sprintf("%s/zcrypt", owl_get_bindir());
     
    491491
    492492  /* make a formatted copy of the message */
    493   format_msg = owl_strdup(msg);
     493  format_msg = g_strdup(msg);
    494494  if (unwrap)
    495495    owl_text_wordunwrap(format_msg);
     
    522522
    523523  /* make a formatted copy of the message */
    524   format_msg=owl_strdup(msg);
     524  format_msg=g_strdup(msg);
    525525  owl_text_wordunwrap(format_msg);
    526526 
     
    21912191 
    21922192  if (!strncmp(filtername, "not-", 4)) {
    2193     newname=owl_strdup(filtername+4);
     2193    newname=g_strdup(filtername+4);
    21942194  } else {
    21952195    newname=owl_sprintf("not-%s", filtername);
     
    22972297    }
    22982298  } else {
    2299     class = owl_strdup(c);
     2299    class = g_strdup(c);
    23002300    if (i) {
    2301       instance = owl_strdup(i);
     2301      instance = g_strdup(i);
    23022302    }
    23032303  }
     
    24292429  /* if it already exists then go with it.  This lets users override */
    24302430  if (owl_global_get_filter(&g, filtname)) {
    2431     return(owl_strdup(filtname));
     2431    return(g_strdup(filtname));
    24322432  }
    24332433
     
    30513051        timestr=owl_util_minutes_to_timestr(idle);
    30523052      } else {
    3053         timestr=owl_strdup("");
     3053        timestr=g_strdup("");
    30543054      }
    30553055      owl_fmtext_appendf_normal(&fm, "  %-20.20s %-12.12s\n", owl_buddy_get_name(b), timestr);
     
    32863286  if (!filename) {
    32873287    fail_silent = 1;
    3288     path = owl_strdup(owl_global_get_startupfile(&g));
     3288    path = g_strdup(owl_global_get_startupfile(&g));
    32893289  } else {
    32903290    path = owl_util_makepath(filename);
     
    33893389
    33903390  now=time(NULL);
    3391   date=owl_strdup(ctime(&now));
     3391  date=g_strdup(ctime(&now));
    33923392  date[strlen(date)-1]='\0';
    33933393
Note: See TracChangeset for help on using the changeset viewer.