[BusyBox-cvs] busybox/networking ip.c,1.3,1.4

Glenn McGrath bug1 at busybox.net
Mon Apr 12 02:35:46 UTC 2004


Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv7137/networking

Modified Files:
	ip.c 
Log Message:
Fix compile error if CONFIG_FEATURE_IP_ADDR isnt enabled


Index: ip.c
===================================================================
RCS file: /var/cvs/busybox/networking/ip.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- a/ip.c	19 Mar 2003 09:12:38 -0000	1.3
+++ b/ip.c	12 Apr 2004 02:35:44 -0000	1.4
@@ -93,17 +93,17 @@
 		}
 #endif
 #ifdef CONFIG_FEATURE_IP_ROUTE
-		else if (matches(argv[1], "route") == 0) {
+		if (matches(argv[1], "route") == 0) {
 			ret = do_iproute(argc-2, argv+2);
 		}
 #endif
 #ifdef CONFIG_FEATURE_IP_LINK
-		else if (matches(argv[1], "link") == 0) {
+		if (matches(argv[1], "link") == 0) {
 			ret = do_iplink(argc-2, argv+2);
 		}
 #endif
 #ifdef CONFIG_FEATURE_IP_TUNNEL
-		else if (matches(argv[1], "tunnel") == 0 || strcmp(argv[1], "tunl") == 0) {
+		if (matches(argv[1], "tunnel") == 0 || strcmp(argv[1], "tunl") == 0) {
 			ret = do_iptunnel(argc-2, argv+2);
 		}
 #endif




More information about the busybox-cvs mailing list