diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-20 06:35:54 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-20 06:35:54 +0000 |
commit | 5e136f269be7941c69814b1ef17b6eceafa68cba (patch) | |
tree | 0682a70b726dac38167f5da22453975257069781 /networking | |
parent | 65659be21392f97c4456c3cee43c03685e894b83 (diff) |
Prevent "`bootp_down' was declared implicitly `extern' and later `static'" warning
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index a8a746453..5809380af 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -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)); |