comparison libpurple/network.c @ 15893:efdd557ed187

Silence a warning about purple_network_finish_pmp_map_cb being defined but not used
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 24 Mar 2007 21:14:12 +0000
parents 9b875f0ecb86
children 3a45be1c3281
comparison
equal deleted inserted replaced
15892:2f6ea4cbcbb3 15893:efdd557ed187
248 * it otherwise. */ 248 * it otherwise. */
249 listen_data->mapping_data = NULL; 249 listen_data->mapping_data = NULL;
250 purple_network_listen_cancel(listen_data); 250 purple_network_listen_cancel(listen_data);
251 } 251 }
252 252
253 #ifdef ENABLE_NAT_PMP
253 static gboolean 254 static gboolean
254 purple_network_finish_pmp_map_cb(gpointer data) 255 purple_network_finish_pmp_map_cb(gpointer data)
255 { 256 {
256 PurpleNetworkListenData *listen_data; 257 PurpleNetworkListenData *listen_data;
257 258
262 263
263 purple_network_listen_cancel(listen_data); 264 purple_network_listen_cancel(listen_data);
264 265
265 return FALSE; 266 return FALSE;
266 } 267 }
268 #endif
267 269
268 static PurpleNetworkListenData * 270 static PurpleNetworkListenData *
269 purple_network_do_listen(unsigned short port, int socket_type, PurpleNetworkListenCallback cb, gpointer cb_data) 271 purple_network_do_listen(unsigned short port, int socket_type, PurpleNetworkListenCallback cb, gpointer cb_data)
270 { 272 {
271 int listenfd = -1; 273 int listenfd = -1;