diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 10:42:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-26 10:42:51 +0000 |
commit | bf0a201008671f81c107de72c026b1b84967561d (patch) | |
tree | af74820b70fa27929fe218c95822c20651b60637 /networking | |
parent | 5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff) | |
download | busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.gz busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.tar.bz2 busybox-w32-bf0a201008671f81c107de72c026b1b84967561d.zip |
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'networking')
-rw-r--r-- | networking/fakeidentd.c | 2 | ||||
-rw-r--r-- | networking/ifconfig.c | 2 | ||||
-rw-r--r-- | networking/inetd.c | 4 | ||||
-rw-r--r-- | networking/ipcalc.c | 2 | ||||
-rw-r--r-- | networking/libiproute/utils.h | 2 | ||||
-rw-r--r-- | networking/telnet.c | 6 | ||||
-rw-r--r-- | networking/traceroute.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c index 04138cca3..8967a7a38 100644 --- a/networking/fakeidentd.c +++ b/networking/fakeidentd.c | |||
@@ -302,7 +302,7 @@ deleteconn: | |||
302 | conns[i].lasttime = time(NULL); | 302 | conns[i].lasttime = time(NULL); |
303 | } | 303 | } |
304 | } | 304 | } |
305 | } /* end of while(1) */ | 305 | } /* end of while (1) */ |
306 | 306 | ||
307 | return 0; | 307 | return 0; |
308 | } | 308 | } |
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 242bd0638..dd4ce5ecd 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -497,7 +497,7 @@ int ifconfig_main(int argc, char **argv) | |||
497 | ifr.ifr_flags &= ~selector; | 497 | ifr.ifr_flags &= ~selector; |
498 | if (ioctl(sockfd, SIOCSIFFLAGS, &ifr) < 0) | 498 | if (ioctl(sockfd, SIOCSIFFLAGS, &ifr) < 0) |
499 | bb_perror_msg_and_die("SIOCSIFFLAGS"); | 499 | bb_perror_msg_and_die("SIOCSIFFLAGS"); |
500 | } /* while() */ | 500 | } /* while () */ |
501 | 501 | ||
502 | if (ENABLE_FEATURE_CLEAN_UP) | 502 | if (ENABLE_FEATURE_CLEAN_UP) |
503 | close(sockfd); | 503 | close(sockfd); |
diff --git a/networking/inetd.c b/networking/inetd.c index 7c89be28f..75665ba3e 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -835,7 +835,7 @@ static servtab_t *getconfigent(void) | |||
835 | sigaddset(&m, SIGHUP); \ | 835 | sigaddset(&m, SIGHUP); \ |
836 | sigaddset(&m, SIGALRM); \ | 836 | sigaddset(&m, SIGALRM); \ |
837 | sigprocmask(SIG_BLOCK, &m, NULL); \ | 837 | sigprocmask(SIG_BLOCK, &m, NULL); \ |
838 | } while(0) | 838 | } while (0) |
839 | 839 | ||
840 | static servtab_t *enter(servtab_t *cp) | 840 | static servtab_t *enter(servtab_t *cp) |
841 | { | 841 | { |
@@ -1495,7 +1495,7 @@ do_exit1: | |||
1495 | if (!sep->se_wait && sep->se_socktype == SOCK_STREAM) | 1495 | if (!sep->se_wait && sep->se_socktype == SOCK_STREAM) |
1496 | close(ctrl); | 1496 | close(ctrl); |
1497 | } /* for (sep = servtab...) */ | 1497 | } /* for (sep = servtab...) */ |
1498 | } /* for(;;) */ | 1498 | } /* for (;;) */ |
1499 | } | 1499 | } |
1500 | 1500 | ||
1501 | /* | 1501 | /* |
diff --git a/networking/ipcalc.c b/networking/ipcalc.c index 0ee9646c2..685f0e315 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c | |||
@@ -43,7 +43,7 @@ static int get_prefix(unsigned long netmask) | |||
43 | int ret = 0; | 43 | int ret = 0; |
44 | 44 | ||
45 | netmask = htonl(netmask); | 45 | netmask = htonl(netmask); |
46 | while(msk) { | 46 | while (msk) { |
47 | if (netmask & msk) | 47 | if (netmask & msk) |
48 | ret++; | 48 | ret++; |
49 | msk >>= 1; | 49 | msk >>= 1; |
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 0b0d7545a..98634dde7 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -30,7 +30,7 @@ extern char * _SL_; | |||
30 | 30 | ||
31 | extern void incomplete_command(void) ATTRIBUTE_NORETURN; | 31 | extern void incomplete_command(void) ATTRIBUTE_NORETURN; |
32 | 32 | ||
33 | #define NEXT_ARG() do { argv++; if (--argc <= 0) incomplete_command(); } while(0) | 33 | #define NEXT_ARG() do { argv++; if (--argc <= 0) incomplete_command(); } while (0) |
34 | 34 | ||
35 | typedef struct | 35 | typedef struct |
36 | { | 36 | { |
diff --git a/networking/telnet.c b/networking/telnet.c index 6085d885a..e65b6918d 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -320,7 +320,7 @@ static void putiac_subopt(byte c, char *str) | |||
320 | putiac(c); | 320 | putiac(c); |
321 | putiac(0); | 321 | putiac(0); |
322 | 322 | ||
323 | while(*str) | 323 | while (*str) |
324 | putiac(*str++); | 324 | putiac(*str++); |
325 | 325 | ||
326 | putiac(IAC); | 326 | putiac(IAC); |
@@ -343,12 +343,12 @@ static void putiac_subopt_autologin(void) | |||
343 | putiac(TELQUAL_IS); | 343 | putiac(TELQUAL_IS); |
344 | putiac(NEW_ENV_VAR); | 344 | putiac(NEW_ENV_VAR); |
345 | 345 | ||
346 | while(*user) | 346 | while (*user) |
347 | putiac(*user++); | 347 | putiac(*user++); |
348 | 348 | ||
349 | putiac(NEW_ENV_VALUE); | 349 | putiac(NEW_ENV_VALUE); |
350 | 350 | ||
351 | while(*autologin) | 351 | while (*autologin) |
352 | putiac(*autologin++); | 352 | putiac(*autologin++); |
353 | 353 | ||
354 | putiac(IAC); | 354 | putiac(IAC); |
diff --git a/networking/traceroute.c b/networking/traceroute.c index adb9ef0b4..0f3da90d6 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -989,7 +989,7 @@ traceroute_main(int argc, char *argv[]) | |||
989 | if (sourse_route_list) { | 989 | if (sourse_route_list) { |
990 | llist_t *l_sr; | 990 | llist_t *l_sr; |
991 | 991 | ||
992 | for(l_sr = sourse_route_list; l_sr; ) { | 992 | for (l_sr = sourse_route_list; l_sr; ) { |
993 | if (lsrr >= NGATEWAYS) | 993 | if (lsrr >= NGATEWAYS) |
994 | bb_error_msg_and_die("no more than %d gateways", NGATEWAYS); | 994 | bb_error_msg_and_die("no more than %d gateways", NGATEWAYS); |
995 | getaddr(gwlist + lsrr, l_sr->data); | 995 | getaddr(gwlist + lsrr, l_sr->data); |