pidgin: bc7e620f: Fix two warnings when building on OS X
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Thu May 21 20:15:43 EDT 2009
-----------------------------------------------------------------
Revision: bc7e620f5c66149f20e492d6d02c549e1fab6709
Ancestor: b7e8c44c307d8c76ec8baf9f5de889131d8bec6d
Author: darkrain42 at pidgin.im
Date: 2009-05-21T05:56:53
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bc7e620f5c66149f20e492d6d02c549e1fab6709
Modified files:
libpurple/nat-pmp.c libpurple/protocols/msn/slplink.c
ChangeLog:
Fix two warnings when building on OS X
slplink.c: In function 'msn_slplink_process_msg':
slplink.c:596: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'guint64
nat-pmp.c: In function 'default_gw':
nat-pmp.c:203: warning: format '%i' expects type 'int', but argument 3 has type 'size_t'
-------------- next part --------------
============================================================
--- libpurple/nat-pmp.c 4e4fb9bb4b636bae702827a77339dc3e6a679449
+++ libpurple/nat-pmp.c bea2db8b874755bb960cfb95a24a4b81847dee8a
@@ -200,7 +200,7 @@ default_gw()
if (!(buf = malloc(needed)))
{
- purple_debug_warning("nat-pmp", "Failed to malloc %i\n", needed);
+ purple_debug_warning("nat-pmp", "Failed to malloc %" G_GSIZE_FORMAT "\n", needed);
return NULL;
}
============================================================
--- libpurple/protocols/msn/slplink.c 3033b4646f0ee9aa42542c5698029757b64b5f27
+++ libpurple/protocols/msn/slplink.c d7fddf4c0a7dea8c8638877600a5112b64949a3d
@@ -592,7 +592,7 @@ msn_slplink_process_msg(MsnSlpLink *slpl
if (G_MAXSIZE - len < offset || (offset + len) > slpmsg->size)
{
purple_debug_error("msn",
- "Oversized slpmsg - msgsize=%lld offset=%" G_GSIZE_FORMAT " len=%" G_GSIZE_FORMAT "\n",
+ "Oversized slpmsg - msgsize=%lld offset=%" G_GUINT64_FORMAT " len=%" G_GSIZE_FORMAT "\n",
slpmsg->size, offset, len);
g_return_if_reached();
}
More information about the Commits
mailing list