changeset 17552:a8aa651f341f

advertisment_fd is an input handler, not a fd; name it accurately to avoid confusion.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 08 Jun 2007 05:06:47 +0000
parents 5eebb9b24e30
children 61005dea822b
files libpurple/protocols/bonjour/mdns_common.c libpurple/protocols/bonjour/mdns_types.h libpurple/protocols/bonjour/mdns_win32.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;
--- 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);
 		}
 	}