[BusyBox-cvs] CVS update of busybox/networking (ifupdown.c)
Erik Andersen
andersen at codepoet.org
Tue Jul 20 06:35:54 UTC 2004
Date: Tuesday, July 20, 2004 @ 00:35:54
Author: andersen
Path: /var/cvs/busybox/networking
Modified: ifupdown.c (1.39 -> 1.40)
Prevent "`bootp_down' was declared implicitly `extern' and later `static'" warning
Index: busybox/networking/ifupdown.c
diff -u busybox/networking/ifupdown.c:1.39 busybox/networking/ifupdown.c:1.40
--- busybox/networking/ifupdown.c:1.39 Mon Jun 28 18:48:30 2004
+++ busybox/networking/ifupdown.c Tue Jul 20 00:35:54 2004
@@ -545,6 +545,15 @@
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 @@
"--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));
More information about the busybox-cvs
mailing list