# HG changeset patch # User Mark Doliner # Date 1258960553 0 # Node ID 66c4fbe088d08b0f568e9f15df133133b3e98d9c # Parent 1b8e39c6d1f384eaf4c556ddef561772c8ebd1c5 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 diff -r 1b8e39c6d1f3 -r 66c4fbe088d0 libpurple/protocols/mxit/protocol.c --- 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 ),