changeset 29008:66c4fbe088d0

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
author Mark Doliner <mark@kingant.net>
date Mon, 23 Nov 2009 07:15:53 +0000
parents 1b8e39c6d1f3
children c2bc5f8071a2
files libpurple/protocols/mxit/protocol.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/mxit/protocol.c	Mon Nov 23 06:13:24 2009 +0000
+++ b/libpurple/protocols/mxit/protocol.c	Mon Nov 23 07:15:53 2009 +0000
@@ -339,10 +339,10 @@
 	/* 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"
 					"\r\n",
 					session->http_server,
 					purple_url_encode( packet->header ),