cpw.malu.xmpp.jingle_ft: 585bb3b0: Fix some warnings regarding format strin...
malu at pidgin.im
malu at pidgin.im
Sun Jan 10 15:05:46 EST 2010
-----------------------------------------------------------------
Revision: 585bb3b03cc82be6860e59a9e73f2dea5803a56c
Ancestor: 16debe386a2f890f1486474da2f465a3a9e914c7
Author: malu at pidgin.im
Date: 2010-01-10T20:00:58
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/585bb3b03cc82be6860e59a9e73f2dea5803a56c
Modified files:
libpurple/protocols/jabber/jingle/ibbs.c
libpurple/protocols/jabber/jingle/s5b.c
ChangeLog:
Fix some warnings regarding format string specifiers
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/ibbs.c 4a2ac21d73efa3fa8444c1af09357a592b69e2dc
+++ libpurple/protocols/jabber/jingle/ibbs.c 82b348f4e4e481c564628854498d94f9088074c3
@@ -186,7 +186,7 @@ jingle_ibb_to_xml_internal(JingleTranspo
JingleIBBPrivate *priv = JINGLE_IBB_GET_PRIVATE(transport);
if (priv->session) {
gchar *block_size =
- g_strdup_printf("%d",
+ g_strdup_printf("%" G_GSIZE_FORMAT,
jabber_ibb_session_get_block_size(priv->session));
xmlnode_set_attrib(node, "sid",
jabber_ibb_session_get_sid(priv->session));
============================================================
--- libpurple/protocols/jabber/jingle/s5b.c baa968eeababbb3455df8f9c1bd7d116d1befbd6
+++ libpurple/protocols/jabber/jingle/s5b.c 542ffdd10a482e343a53b3de58bb3f318c301119
@@ -204,7 +204,7 @@ struct _JingleS5BPrivate {
guint connect_timeout;
int watcher;
char *rxqueue;
- size_t rxlen;
+ gsize rxlen;
gsize rxmaxlen;
GList *remote_candidates;
GList *local_candidates;
@@ -689,7 +689,8 @@ jingle_s5b_send_read_again_cb(gpointer d
return;
} else if(s5b->priv->rxlen - 5 < s5b->priv->rxqueue[4] + 2) {
purple_debug_info("jingle-s5b",
- "reading %u bytes for DST.ADDR + port num (trying to read %u now)\n",
+ "reading %d "
+ " bytes for DST.ADDR + port num (trying to read %" G_GSIZE_FORMAT " now)\n",
s5b->priv->rxqueue[4] + 2,
s5b->priv->rxqueue[4] + 2 - (s5b->priv->rxlen - 5));
len = read(source, buffer,
@@ -862,7 +863,8 @@ jingle_s5b_send_read_cb(gpointer data, g
return;
} else if(s5b->priv->rxlen - 2 < s5b->priv->rxqueue[1]) {
purple_debug_info("jingle-s5b",
- "reading %u bytes for auth methods (trying to read %u now)\n",
+ "reading %d "
+ " bytes for auth methods (trying to read %" G_GSIZE_FORMAT " now)\n",
s5b->priv->rxqueue[1], s5b->priv->rxqueue[1] - (s5b->priv->rxlen - 2));
len = read(source, buffer, s5b->priv->rxqueue[1] - (s5b->priv->rxlen - 2));
More information about the Commits
mailing list