Prevent "`bootp_down' was declared implicitly `extern' and later `static'" warning
authorEric Andersen <andersen@codepoet.org>
Tue, 20 Jul 2004 06:35:54 +0000 (06:35 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 20 Jul 2004 06:35:54 +0000 (06:35 -0000)
networking/ifupdown.c

index a8a746453dd06484ce3aa26666025846af9eccd4..5809380afb6f46fde537cb198b022a861cdd835e 100644 (file)
@@ -545,6 +545,15 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
        return(0);
 }
 
+static int bootp_down(struct interface_defn_t *ifd, execfn *exec)
+{
+#ifdef CONFIG_FEATURE_IFUPDOWN_IP
+       return(execute("ip link set %iface% down", ifd, exec));
+#else
+       return(execute("ifconfig %iface% down", ifd, exec));
+#endif
+}
+
 static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
 {
        int result = 0;
@@ -567,15 +576,6 @@ static int bootp_up(struct interface_defn_t *ifd, execfn *exec)
                                "--returniffail --serverbcast", ifd, exec));
 }
 
-static int bootp_down(struct interface_defn_t *ifd, execfn *exec)
-{
-#ifdef CONFIG_FEATURE_IFUPDOWN_IP
-       return(execute("ip link set %iface% down", ifd, exec));
-#else
-       return(execute("ifconfig %iface% down", ifd, exec));
-#endif
-}
-
 static int ppp_up(struct interface_defn_t *ifd, execfn *exec)
 {
        return( execute("pon [[%provider%]]", ifd, exec));