diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/inetd.c | 4 | ||||
-rw-r--r-- | networking/libiproute/iplink.c | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index 49ca7a36e..a17d28ebf 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -908,7 +908,6 @@ static void config (int sig ATTRIBUTE_UNUSED) { servtab_t *sep, *cp, **sepp; sigset_t omask; - int add; size_t n; char protoname[10]; @@ -923,7 +922,7 @@ static void config (int sig ATTRIBUTE_UNUSED) for (sep = servtab; sep; sep = sep->se_next) if (matchconf (sep, cp)) break; - add = 0; + if (sep != 0) { int i; @@ -958,7 +957,6 @@ static void config (int sig ATTRIBUTE_UNUSED) #endif sigprocmask(SIG_UNBLOCK, &omask, NULL); freeconfig (cp); - add = 1; } else { sep = enter (cp); } diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 1948efe37..d9f28374b 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c @@ -29,8 +29,6 @@ /* take from linux/sockios.h */ #define SIOCSIFNAME 0x8923 /* set interface name */ -static int do_link; - static int on_off(char *msg) { bb_error_msg("Error: argument of \"%s\" must be \"on\" or \"off\"", msg); @@ -336,7 +334,6 @@ static int do_set(int argc, char **argv) static int ipaddr_list_link(int argc, char **argv) { preferred_family = AF_PACKET; - do_link = 1; return ipaddr_list_or_flush(argc, argv, 0); } |