diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-20 06:35:54 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-20 06:35:54 +0000 |
| commit | e312f213626d64ce7e0a2506bc72efe5186b0618 (patch) | |
| tree | 0682a70b726dac38167f5da22453975257069781 | |
| parent | cd0f8785ec23ea2d5f85c28ce63ed9149a7fe501 (diff) | |
| download | busybox-w32-e312f213626d64ce7e0a2506bc72efe5186b0618.tar.gz busybox-w32-e312f213626d64ce7e0a2506bc72efe5186b0618.tar.bz2 busybox-w32-e312f213626d64ce7e0a2506bc72efe5186b0618.zip | |
Prevent "`bootp_down' was declared implicitly `extern' and later `static'" warning
git-svn-id: svn://busybox.net/trunk/busybox@8970 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -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) | |||
| 545 | return(0); | 545 | return(0); |
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | static int bootp_down(struct interface_defn_t *ifd, execfn *exec) | ||
| 549 | { | ||
| 550 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP | ||
| 551 | return(execute("ip link set %iface% down", ifd, exec)); | ||
| 552 | #else | ||
| 553 | return(execute("ifconfig %iface% down", ifd, exec)); | ||
| 554 | #endif | ||
| 555 | } | ||
| 556 | |||
| 548 | static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | 557 | static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) |
| 549 | { | 558 | { |
| 550 | int result = 0; | 559 | int result = 0; |
| @@ -567,15 +576,6 @@ static int bootp_up(struct interface_defn_t *ifd, execfn *exec) | |||
| 567 | "--returniffail --serverbcast", ifd, exec)); | 576 | "--returniffail --serverbcast", ifd, exec)); |
| 568 | } | 577 | } |
| 569 | 578 | ||
| 570 | static int bootp_down(struct interface_defn_t *ifd, execfn *exec) | ||
| 571 | { | ||
| 572 | #ifdef CONFIG_FEATURE_IFUPDOWN_IP | ||
| 573 | return(execute("ip link set %iface% down", ifd, exec)); | ||
| 574 | #else | ||
| 575 | return(execute("ifconfig %iface% down", ifd, exec)); | ||
| 576 | #endif | ||
| 577 | } | ||
| 578 | |||
| 579 | static int ppp_up(struct interface_defn_t *ifd, execfn *exec) | 579 | static int ppp_up(struct interface_defn_t *ifd, execfn *exec) |
| 580 | { | 580 | { |
| 581 | return( execute("pon [[%provider%]]", ifd, exec)); | 581 | return( execute("pon [[%provider%]]", ifd, exec)); |
