Mercurial > pidgin
diff libpurple/protocols/mxit/protocol.c @ 28628: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 | 363691903201 |
| children | 06fabb28bc69 |
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 ),
