comparison libpurple/protocols/yahoo/yahoo.c @ 25068:7bd420b3edb7

if(p2p_data->source >= 0) in place of if(p2p_data->source)
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sat, 12 Jul 2008 18:33:15 +0000
parents 860d8ed4f7a6
children 262ae5f56a9a
comparison
equal deleted inserted replaced
25067:fa462a39cd47 25068:7bd420b3edb7
2276 /*If friend, set him not connected*/ 2276 /*If friend, set him not connected*/
2277 f = yahoo_friend_find(p2p_data->gc, p2p_data->host_username); 2277 f = yahoo_friend_find(p2p_data->gc, p2p_data->host_username);
2278 if (f) 2278 if (f)
2279 yahoo_friend_set_p2p_status(f, NOT_CONNECTED); 2279 yahoo_friend_set_p2p_status(f, NOT_CONNECTED);
2280 2280
2281 if(p2p_data->source) 2281 if(p2p_data->source >= 0)
2282 close(p2p_data->source); 2282 close(p2p_data->source);
2283 purple_input_remove(p2p_data->input_event); 2283 purple_input_remove(p2p_data->input_event);
2284 g_free(p2p_data->host_ip); 2284 g_free(p2p_data->host_ip);
2285 g_free(p2p_data->host_username); 2285 g_free(p2p_data->host_username);
2286 g_free(p2p_data); 2286 g_free(p2p_data);