comparison src/protocols/jabber/si.c @ 11656:f9c5480ad0ce

[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 <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 13 Oct 2005 19:53:09 +0000
parents 8dca96cbcd64
children cbebda5f019c
comparison
equal deleted inserted replaced
11655:527cf464140b 11656:f9c5480ad0ce
516 516
517 file = xmlnode_new_child(si, "file"); 517 file = xmlnode_new_child(si, "file");
518 xmlnode_set_attrib(file, "xmlns", 518 xmlnode_set_attrib(file, "xmlns",
519 "http://jabber.org/protocol/si/profile/file-transfer"); 519 "http://jabber.org/protocol/si/profile/file-transfer");
520 xmlnode_set_attrib(file, "name", xfer->filename); 520 xmlnode_set_attrib(file, "name", xfer->filename);
521 g_snprintf(buf, sizeof(buf), "%zu", xfer->size); 521 g_snprintf(buf, sizeof(buf), "%" G_GSIZE_FORMAT, xfer->size);
522 xmlnode_set_attrib(file, "size", buf); 522 xmlnode_set_attrib(file, "size", buf);
523 /* maybe later we'll do hash and date attribs */ 523 /* maybe later we'll do hash and date attribs */
524 524
525 feature = xmlnode_new_child(si, "feature"); 525 feature = xmlnode_new_child(si, "feature");
526 xmlnode_set_attrib(feature, "xmlns", 526 xmlnode_set_attrib(feature, "xmlns",