# HG changeset patch # User Nathan Walp # Date 1053394316 0 # Node ID e1cc0c67e12373ad4df261ad009566c1677a7df5 # Parent bb1e160467b65b24335e66550939896e89cfd29f [gaim-migrate @ 5839] some compile cleanups, and more importantly, the rest of that tobase16 fix that I forgot about committer: Tailor Script diff -r bb1e160467b6 -r e1cc0c67e123 src/gtkblist.c --- a/src/gtkblist.c Tue May 20 00:45:35 2003 +0000 +++ b/src/gtkblist.c Tue May 20 01:31:56 2003 +0000 @@ -2199,7 +2199,7 @@ { GtkTreeIter more_z, iter; GaimBlistNode *n; - GtkTreePath *newpath, *expand; + GtkTreePath *newpath, *expand = NULL; GValue val = {0,}; struct _gaim_gtk_blist_node *gtknode = (struct _gaim_gtk_blist_node *)node->ui_data; char *collapsed = gaim_group_get_setting((struct group *)node->parent, "collapsed"); diff -r bb1e160467b6 -r e1cc0c67e123 src/prefs.c --- a/src/prefs.c Tue May 20 00:45:35 2003 +0000 +++ b/src/prefs.c Tue May 20 01:31:56 2003 +0000 @@ -288,7 +288,7 @@ } } -void gaim_prefs_set_string(const char *name, char *value) { +void gaim_prefs_set_string(const char *name, const char *value) { struct gaim_pref *pref = find_pref(name); g_return_if_fail(pref != NULL); diff -r bb1e160467b6 -r e1cc0c67e123 src/prefs.h --- a/src/prefs.h Tue May 20 00:45:35 2003 +0000 +++ b/src/prefs.h Tue May 20 01:31:56 2003 +0000 @@ -125,7 +125,7 @@ * @param name The name of the pref * @param value The value to set */ -void gaim_prefs_set_string(const char *name, char *value); +void gaim_prefs_set_string(const char *name, const char *value); /** * Get boolean pref value diff -r bb1e160467b6 -r e1cc0c67e123 src/util.c --- a/src/util.c Tue May 20 00:45:35 2003 +0000 +++ b/src/util.c Tue May 20 01:31:56 2003 +0000 @@ -467,7 +467,7 @@ /* * Converts raw data to a pretty, null-terminated base16 string. */ -char *tobase16(const char *data, int length) +unsigned char *tobase16(const unsigned char *data, int length) { int i; unsigned char *ascii = NULL; diff -r bb1e160467b6 -r e1cc0c67e123 src/util.h --- a/src/util.h Tue May 20 00:45:35 2003 +0000 +++ b/src/util.h Tue May 20 01:31:56 2003 +0000 @@ -73,14 +73,14 @@ * * @see frombase16() */ -char *tobase16(const char *str, int len); +unsigned char *tobase16(const unsigned char *str, int len); /** * Converts a string back from its base-16 equivalent. * * @param str The string to convert back. * @param ret_str The returned, non-base-16 string. - * + * * @return The length of the returned string. * * @see tobase16()