# HG changeset patch # User Daniel Atallah # Date 1181279207 0 # Node ID a8aa651f341ffb3604262def5988f0ddc0317499 # Parent 5eebb9b24e30340335eb01d204880c92166b01a0 advertisment_fd is an input handler, not a fd; name it accurately to avoid confusion. diff -r 5eebb9b24e30 -r a8aa651f341f libpurple/protocols/bonjour/mdns_common.c --- a/libpurple/protocols/bonjour/mdns_common.c Thu Jun 07 14:47:30 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_common.c Fri Jun 08 05:06:47 2007 +0000 @@ -162,7 +162,7 @@ #ifdef USE_BONJOUR_APPLE /* hack: for win32, we need to stop listening to the advertisement pipe too */ - purple_input_remove(data->advertisement_fd); + purple_input_remove(data->advertisement_handler); DNSServiceRefDeallocate(data->advertisement); DNSServiceRefDeallocate(data->browser); diff -r 5eebb9b24e30 -r a8aa651f341f libpurple/protocols/bonjour/mdns_types.h --- a/libpurple/protocols/bonjour/mdns_types.h Thu Jun 07 14:47:30 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_types.h Fri Jun 08 05:06:47 2007 +0000 @@ -38,7 +38,7 @@ DNSServiceRef advertisement; DNSServiceRef browser; - int advertisement_fd; /* hack... windows bonjour is broken, so we have to have this */ + int advertisement_handler; /* hack... windows bonjour is broken, so we have to have this */ #else /* USE_BONJOUR_HOWL */ sw_discovery session; sw_discovery_oid session_id; diff -r 5eebb9b24e30 -r a8aa651f341f libpurple/protocols/bonjour/mdns_win32.c --- a/libpurple/protocols/bonjour/mdns_win32.c Thu Jun 07 14:47:30 2007 +0000 +++ b/libpurple/protocols/bonjour/mdns_win32.c Fri Jun 08 05:06:47 2007 +0000 @@ -280,7 +280,7 @@ { /* hack: Bonjour on windows is broken. We don't care about the callback but we have to listen anyway */ gint advertisement_fd = DNSServiceRefSockFD(data->advertisement); - data->advertisement_fd = purple_input_add(advertisement_fd, PURPLE_INPUT_READ, _mdns_handle_event, data->advertisement); + data->advertisement_handler = purple_input_add(advertisement_fd, PURPLE_INPUT_READ, _mdns_handle_event, data->advertisement); } }