comparison libpurple/protocols/msnp9/msn.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 616a76954a97
children 0be4c1f0fa55 981a0bfc3d9d e4a4bc86c547 f8b47fd39f53
comparison
equal deleted inserted replaced
22474:9511acb88e58 22475:3225c99785b8
1951 photo_url_text, url_text); 1951 photo_url_text, url_text);
1952 } 1952 }
1953 else 1953 else
1954 { 1954 {
1955 char buf[1024]; 1955 char buf[1024];
1956 purple_debug_info("msn", "%s is %d bytes\n", photo_url_text, len); 1956 purple_debug_info("msn", "%s is %" G_GSIZE_FORMAT
1957 " bytes\n", photo_url_text, len);
1957 id = purple_imgstore_add_with_id(g_memdup(url_text, len), len, NULL); 1958 id = purple_imgstore_add_with_id(g_memdup(url_text, len), len, NULL);
1958 g_snprintf(buf, sizeof(buf), "<img id=\"%d\"><br>", id); 1959 g_snprintf(buf, sizeof(buf), "<img id=\"%d\"><br>", id);
1959 purple_notify_user_info_prepend_pair(user_info, NULL, buf); 1960 purple_notify_user_info_prepend_pair(user_info, NULL, buf);
1960 } 1961 }
1961 } 1962 }