comparison libpurple/protocols/msn/directconn.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 89c7be36fd61
children d3262085b7a7
comparison
equal deleted inserted replaced
22485:9511acb88e58 22486:3225c99785b8
298 return; 298 return;
299 } 299 }
300 300
301 body_len = GUINT32_FROM_LE(body_len); 301 body_len = GUINT32_FROM_LE(body_len);
302 302
303 purple_debug_info("msn", "body_len=%d\n", body_len); 303 purple_debug_info("msn", "body_len=%" G_GSIZE_FORMAT "\n", body_len);
304 304
305 if (body_len <= 0) 305 if (body_len <= 0)
306 { 306 {
307 /* ERROR */ 307 /* ERROR */
308 purple_debug_error("msn", "error reading\n"); 308 purple_debug_error("msn", "error reading\n");
322 if (body != NULL) 322 if (body != NULL)
323 { 323 {
324 /* Let's read the data. */ 324 /* Let's read the data. */
325 len = read(directconn->fd, body, body_len); 325 len = read(directconn->fd, body, body_len);
326 326
327 purple_debug_info("msn", "len=%d\n", len); 327 purple_debug_info("msn", "len=%" G_GSIZE_FORMAT "\n", len);
328 } 328 }
329 else 329 else
330 { 330 {
331 purple_debug_error("msn", "Failed to allocate memory for read\n"); 331 purple_debug_error("msn", "Failed to allocate memory for read\n");
332 len = 0; 332 len = 0;