# HG changeset patch # User Richard Laager # Date 1129233189 0 # Node ID f9c5480ad0ce501a95820b2a01c4db102484ba7d # Parent 527cf464140b2578e1c4742a84bba5e2d454f367 [gaim-migrate @ 13940] The poster of 1253287 says FreeBSD does have a z printf modifier. Someone commented that Solaris doesn't either. I don't know either way, but we use G_GSIZE_FORMAT elsewhere, so I figured it was worth a shot. I rooted out several %z format strings and changed them. It compiles for me. I make no guarantees past that. committer: Tailor Script diff -r 527cf464140b -r f9c5480ad0ce src/protocols/irc/dcc_send.c --- a/src/protocols/irc/dcc_send.c Thu Oct 13 03:23:38 2005 +0000 +++ b/src/protocols/irc/dcc_send.c Thu Oct 13 19:53:09 2005 +0000 @@ -286,7 +286,7 @@ /* Send the intended recipient the DCC request */ arg[0] = xfer->who; inet_aton(gaim_network_get_my_ip(irc->fd), &addr); - arg[1] = tmp = g_strdup_printf("\001DCC SEND \"%s\" %u %hu %zu\001", + arg[1] = tmp = g_strdup_printf("\001DCC SEND \"%s\" %u %hu %" G_GSIZE_FORMAT "\001", xfer->filename, ntohl(addr.s_addr), port, xfer->size); diff -r 527cf464140b -r f9c5480ad0ce src/protocols/jabber/si.c --- a/src/protocols/jabber/si.c Thu Oct 13 03:23:38 2005 +0000 +++ b/src/protocols/jabber/si.c Thu Oct 13 19:53:09 2005 +0000 @@ -518,7 +518,7 @@ xmlnode_set_attrib(file, "xmlns", "http://jabber.org/protocol/si/profile/file-transfer"); xmlnode_set_attrib(file, "name", xfer->filename); - g_snprintf(buf, sizeof(buf), "%zu", xfer->size); + g_snprintf(buf, sizeof(buf), "%" G_GSIZE_FORMAT, xfer->size); xmlnode_set_attrib(file, "size", buf); /* maybe later we'll do hash and date attribs */ diff -r 527cf464140b -r f9c5480ad0ce src/upnp.c --- a/src/upnp.c Thu Oct 13 03:23:38 2005 +0000 +++ b/src/upnp.c Thu Oct 13 19:53:09 2005 +0000 @@ -95,7 +95,7 @@ "\"urn:schemas-upnp-org:" \ "service:%s#%s\"\r\n" \ "CONTENT-TYPE: text/xml ; charset=\"utf-8\"\r\n"\ - "Content-Length: %zi\r\n\r\n" + "Content-Length: %" G_GSIZE_FORMAT "\r\n\r\n" #define SOAP_ACTION "\r\n" \ "