Backend patches



I'm attaching a patch for the Debian, Gentoo and Slackware backends to complete the work to convert to the new nm_warning function. There's also a minor patch to the Slackware backend so that it will at least compile (admittedly it may then not do a lot or complain, but that's a problem for someone with a Slackware system to fix).

Tom Parker
Index: src/backends/NetworkManagerDebian.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerDebian.c,v
retrieving revision 1.19
diff -u -r1.19 NetworkManagerDebian.c
--- src/backends/NetworkManagerDebian.c	15 Mar 2005 05:30:14 -0000	1.19
+++ src/backends/NetworkManagerDebian.c	29 Mar 2005 00:19:58 -0000
@@ -31,6 +31,7 @@
 #include "NetworkManagerUtils.h"
 #include "NetworkManagerDevice.h"
 #include "interface_parser.h"
+#include "nm-utils.h"
 
 #define ARPING "/usr/sbin/arping"
 
Index: src/backends/NetworkManagerGentoo.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerGentoo.c,v
retrieving revision 1.15
diff -u -r1.15 NetworkManagerGentoo.c
--- src/backends/NetworkManagerGentoo.c	15 Mar 2005 05:30:14 -0000	1.15
+++ src/backends/NetworkManagerGentoo.c	29 Mar 2005 00:19:58 -0000
@@ -27,6 +27,7 @@
 #include <sys/types.h>
 #include <arpa/inet.h>
 #include <signal.h>
+#include "nm-utils.h"
 
 /* get strnlen */
 #define __USE_GNU 
Index: src/backends/NetworkManagerSlackware.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerSlackware.c,v
retrieving revision 1.10
diff -u -r1.10 NetworkManagerSlackware.c
--- src/backends/NetworkManagerSlackware.c	15 Mar 2005 05:30:14 -0000	1.10
+++ src/backends/NetworkManagerSlackware.c	29 Mar 2005 00:19:58 -0000
@@ -26,6 +26,7 @@
 #include "NetworkManagerSystem.h"
 #include "NetworkManagerUtils.h"
 #include "NetworkManagerDevice.h"
+#include "nm-utils.h"
 
 /*
  *	Mostly a mix of the Gentoo and RedHat Backends
@@ -97,6 +98,7 @@
 gboolean nm_system_device_setup_static_ip4_config (NMDevice *dev)
 {
 	nm_warning ("nm_system_device_setup_static_ip4_config() is not implemented yet for this distribution.\n");
+	return FALSE;
 }
 
 
Index: src/backends/interface_parser.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/src/backends/interface_parser.c,v
retrieving revision 1.3
diff -u -r1.3 interface_parser.c
--- src/backends/interface_parser.c	15 Mar 2005 05:30:14 -0000	1.3
+++ src/backends/interface_parser.c	29 Mar 2005 00:19:58 -0000
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include "nm-utils.h"
 
 if_block* first;
 if_block* last;


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