pidgin: a48f2180: struct tx_packet->datalen is an int, so ...

markdoliner at markdoliner at
Mon Nov 23 02:20:54 EST 2009

Revision: a48f2180d9b5751c50f6a5177a903328563ed727
Ancestor: 412385093788630a5cbf089f966c3d00aa3de9c0
Author: markdoliner at
Date: 2009-11-23T07:15:53
Branch: im.pidgin.pidgin

Modified files:


struct tx_packet->datalen is an int, so use %d here instead of G_GSIZE_FORMAT

This gets rid of this warning:
protocol.c:351: warning: format '%lu' expects type 'long unsigned int', but argument 7 has type 'int'

struct tx_packet->datalen probably should be a size_t or gsize, but that's
a bigger change than I want to make right now

-------------- next part --------------
--- libpurple/protocols/mxit/protocol.c	5ee0bcdf16e1acddd809c70c99a78a10d028a34a
+++ libpurple/protocols/mxit/protocol.c	d9b30fea2f51965d79b98fd2f49c28732cd3c42f
@@ -339,10 +339,10 @@ static void mxit_write_http_post( struct
 	/* build the HTTP request packet */
 	reqlen = g_snprintf( request, 256,
 					"POST %s?%s HTTP/1.1\r\n"
-			  		"User-Agent: " MXIT_HTTP_USERAGENT "\r\n"
+					"User-Agent: " MXIT_HTTP_USERAGENT "\r\n"
 					"Content-Type: application/octet-stream\r\n"
-			 		"Host: %s\r\n"
-					"Content-Length: %" G_GSIZE_FORMAT "\r\n"
+					"Host: %s\r\n"
+					"Content-Length: %d\r\n"
 					purple_url_encode( packet->header ),

More information about the Commits mailing list