comparison libpurple/nat-pmp.c @ 27007: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 584063555949
children f1437342cc0e
comparison
equal deleted inserted replaced
27006:5541ea5e9d1e 27007:e45fe73b47e3
198 return NULL; 198 return NULL;
199 } 199 }
200 200
201 if (!(buf = malloc(needed))) 201 if (!(buf = malloc(needed)))
202 { 202 {
203 purple_debug_warning("nat-pmp", "Failed to malloc %i\n", needed); 203 purple_debug_warning("nat-pmp", "Failed to malloc %" G_GSIZE_FORMAT "\n", needed);
204 return NULL; 204 return NULL;
205 } 205 }
206 206
207 /* Read the routing table into buf */ 207 /* Read the routing table into buf */
208 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0) 208 if (sysctl(mib, 6, buf, &needed, NULL, 0) < 0)