← Commit list

5e136f269

Eric Andersen
Eric Andersen
2004-07-20
FAILED Duration: 36s

Subject

Prevent "`bootp_down' was declared implicitly `extern' and later `static'" warning

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ifupdown.c+9 -9
@@ -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));