mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
Prevent "bootp_down' was declared implicitly
extern' and later `static'" warning
This commit is contained in:
parent
65659be213
commit
5e136f269b
@ -545,6 +545,15 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
|
|||||||
return(0);
|
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)
|
static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
@ -567,15 +576,6 @@ static int bootp_up(struct interface_defn_t *ifd, execfn *exec)
|
|||||||
"--returniffail --serverbcast", ifd, 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)
|
static int ppp_up(struct interface_defn_t *ifd, execfn *exec)
|
||||||
{
|
{
|
||||||
return( execute("pon [[%provider%]]", ifd, exec));
|
return( execute("pon [[%provider%]]", ifd, exec));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user