Patches for minor things

Had an opportunity to look at NM for the first time in a while (I've been very busy recently), and I've got a couple of patches for some minor things, shortly to be followed with something a bit more useful ;-)

Attached to this email:
netlink-fix.patch: adds uinstd.h to nm-netlink-monitor.c, which right now is causing build failure on the anoncvs copy of the tree. info-daemon-free.patch: fixes one possible case of an attempt to do a gconf_value_free() when there's nothing to do. One minor dent in the NM "list of assertions we do all the time".

K, another email in a second with more interesting things...

Index: src/nm-netlink-monitor.c
RCS file: /cvs/gnome/NetworkManager/src/nm-netlink-monitor.c,v
retrieving revision 1.1
diff -u -r1.1 nm-netlink-monitor.c
--- src/nm-netlink-monitor.c	11 Mar 2005 20:12:57 -0000	1.1
+++ src/nm-netlink-monitor.c	13 Mar 2005 22:09:23 -0000
@@ -32,6 +32,7 @@
 #include <linux/rtnetlink.h>
 #include <linux/if.h>
 #include <linux/unistd.h>
+#include <unistd.h>
 #include <glib.h>
 #include <glib/gi18n.h>
Index: info-daemon/NetworkManagerInfoDbus.c
RCS file: /cvs/gnome/NetworkManager/info-daemon/NetworkManagerInfoDbus.c,v
retrieving revision 1.46
diff -u -r1.46 NetworkManagerInfoDbus.c
--- info-daemon/NetworkManagerInfoDbus.c	11 Mar 2005 20:12:57 -0000	1.46
+++ info-daemon/NetworkManagerInfoDbus.c	13 Mar 2005 22:09:17 -0000
@@ -535,6 +535,8 @@
 		gconf_client_set_int (info->gconf_client, key, auth_method, NULL);
 		g_free (key);
+	if (value)
+		gconf_value_free (value);
 	g_free (escaped_network);

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