| 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) |