Fix compile error if CONFIG_FEATURE_IP_ADDR isnt enabled
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 12 Apr 2004 02:35:44 +0000 (02:35 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 12 Apr 2004 02:35:44 +0000 (02:35 -0000)
networking/ip.c

index a0781bdba966a4f00cc448ba9394c31c8b8853c4..cfdbf8b9690a45bd561dde6aa081507d06cf5aeb 100644 (file)
@@ -93,17 +93,17 @@ int ip_main(int argc, char **argv)
                }
 #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