libpurple/nat-pmp.c

changeset 27149
f8462e36cb98
parent 25888
d0fdd378a635
child 28981
4e3922ab4844
equal deleted inserted replaced
27148:2b912758ff25 27149:f8462e36cb98
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)

mercurial