DHCP dbus name patch



Find attached a patch that replaces a hardcoded string by a define used at a different place.
--- ./src/dhcp-manager/nm-dhcp-manager.c.orig	2006-01-28 03:38:45.000000000 +0100
+++ ./src/dhcp-manager/nm-dhcp-manager.c	2006-02-04 18:19:15.000000000 +0100
@@ -639,7 +639,7 @@
 	if (!(interface = dbus_message_get_interface (message)))
 		return FALSE;
 	/* Ignore non-DHCP related messages */
-	if (strncmp (interface, "com.redhat.dhcp", 15))
+	if (strncmp (interface, DHCP_SERVICE_NAME, 15))
 		return FALSE;
 
 #if 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]