Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/family_buddy.c @ 22475:3225c99785b8
Fix a bunch of compiler warnings caused by my addition of G_GNUC_PRINTF()
to our debug functions (I really thought we had added that in a while ago?)
I didn't fix all of them... just most of them.
Oh, see these pages for a little info:
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-PRINTF:CAPS
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 16 Mar 2008 20:36:52 +0000 |
parents | 22908b354baf |
children | 979a81468e19 |
comparison
equal
deleted
inserted
replaced
22474:9511acb88e58 | 22475:3225c99785b8 |
---|---|
137 | 137 |
138 if (!buddy_list || !(localcpy = g_strdup(buddy_list))) | 138 if (!buddy_list || !(localcpy = g_strdup(buddy_list))) |
139 return -EINVAL; | 139 return -EINVAL; |
140 | 140 |
141 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { | 141 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { |
142 purple_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr)); | 142 purple_debug_misc("oscar", "---adding: %s (%" G_GSIZE_FORMAT |
143 ")\n", tmpptr, strlen(tmpptr)); | |
143 len += 1 + strlen(tmpptr); | 144 len += 1 + strlen(tmpptr); |
144 tmpptr = strtok(NULL, "&"); | 145 tmpptr = strtok(NULL, "&"); |
145 } | 146 } |
146 | 147 |
147 frame = flap_frame_new(od, 0x02, 10+len); | 148 frame = flap_frame_new(od, 0x02, 10+len); |
151 | 152 |
152 strncpy(localcpy, buddy_list, strlen(buddy_list) + 1); | 153 strncpy(localcpy, buddy_list, strlen(buddy_list) + 1); |
153 | 154 |
154 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { | 155 for (tmpptr = strtok(localcpy, "&"); tmpptr; ) { |
155 | 156 |
156 purple_debug_misc("oscar", "---adding: %s (%d)\n", tmpptr, strlen(tmpptr)); | 157 purple_debug_misc("oscar", "---adding: %s (%" G_GSIZE_FORMAT |
158 ")\n", tmpptr, strlen(tmpptr)); | |
157 | 159 |
158 byte_stream_put8(&frame->data, strlen(tmpptr)); | 160 byte_stream_put8(&frame->data, strlen(tmpptr)); |
159 byte_stream_putstr(&frame->data, tmpptr); | 161 byte_stream_putstr(&frame->data, tmpptr); |
160 tmpptr = strtok(NULL, "&"); | 162 tmpptr = strtok(NULL, "&"); |
161 } | 163 } |