diff libpurple/protocols/yahoo/yahoo_packet.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 3f95ed86fb51
children c65c96e231b5 85d5b6c06a6c
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_packet.c	Sun Mar 16 20:35:23 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_packet.c	Sun Mar 16 20:36:52 2008 +0000
@@ -346,7 +346,7 @@
 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd)
 {
 	size_t len;
-	int ret;
+	ssize_t ret;
 	guchar *data;
 
 	if (yd->fd < 0)
@@ -365,7 +365,8 @@
 	if (ret < 0 && errno == EAGAIN)
 		ret = 0;
 	else if (ret <= 0) {
-		purple_debug_warning("yahoo", "Only wrote %d of %d bytes!\n", ret, len);
+		purple_debug_warning("yahoo", "Only wrote %" G_GSSIZE_FORMAT
+				" of %" G_GSIZE_FORMAT " bytes!\n", ret, len);
 		g_free(data);
 		return ret;
 	}