Mercurial > pidgin
changeset 26925:e45fe73b47e3
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¡Ç
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 21 May 2009 05:56:53 +0000 |
parents | 5541ea5e9d1e |
children | 401f580d56d4 |
files | libpurple/nat-pmp.c libpurple/protocols/msn/slplink.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/nat-pmp.c Thu May 21 04:49:40 2009 +0000 +++ b/libpurple/nat-pmp.c Thu May 21 05:56:53 2009 +0000 @@ -200,7 +200,7 @@ 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; }
--- a/libpurple/protocols/msn/slplink.c Thu May 21 04:49:40 2009 +0000 +++ b/libpurple/protocols/msn/slplink.c Thu May 21 05:56:53 2009 +0000 @@ -592,7 +592,7 @@ 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(); }