comparison libpurple/proxy.c @ 22486: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 04b807c8b98d
children 5a0186edda97
comparison
equal deleted inserted replaced
22485:9511acb88e58 22486:3225c99785b8
1124 s5_ensure_buffer_length(PurpleProxyConnectData *connect_data, int len) 1124 s5_ensure_buffer_length(PurpleProxyConnectData *connect_data, int len)
1125 { 1125 {
1126 if(connect_data->read_len < len) { 1126 if(connect_data->read_len < len) {
1127 if(connect_data->read_buf_len < len) { 1127 if(connect_data->read_buf_len < len) {
1128 /* it's not just that we haven't read enough, it's that we haven't tried to read enough yet */ 1128 /* it's not just that we haven't read enough, it's that we haven't tried to read enough yet */
1129 purple_debug_info("s5", "reallocing from %d to %d\n", connect_data->read_buf_len, len); 1129 purple_debug_info("s5", "reallocing from %" G_GSIZE_FORMAT
1130 " to %d\n", connect_data->read_buf_len, len);
1130 connect_data->read_buf_len = len; 1131 connect_data->read_buf_len = len;
1131 connect_data->read_buffer = g_realloc(connect_data->read_buffer, connect_data->read_buf_len); 1132 connect_data->read_buffer = g_realloc(connect_data->read_buffer, connect_data->read_buf_len);
1132 } 1133 }
1133 return FALSE; 1134 return FALSE;
1134 } 1135 }