summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-26 10:42:51 +0000
committerDenis Vlasenko2006-12-26 10:42:51 +0000
commitbf0a201008671f81c107de72c026b1b84967561d (patch)
treeaf74820b70fa27929fe218c95822c20651b60637 /networking
parent5dd7ef0f37373e397a7160cb431a32ae57f9f7d9 (diff)
downloadbusybox-bf0a201008671f81c107de72c026b1b84967561d.zip
busybox-bf0a201008671f81c107de72c026b1b84967561d.tar.gz
style fixes
last xcalloc replaced by xzalloc
Diffstat (limited to 'networking')
-rw-r--r--networking/fakeidentd.c2
-rw-r--r--networking/ifconfig.c2
-rw-r--r--networking/inetd.c4
-rw-r--r--networking/ipcalc.c2
-rw-r--r--networking/libiproute/utils.h2
-rw-r--r--networking/telnet.c6
-rw-r--r--networking/traceroute.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index 04138cc..8967a7a 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -302,7 +302,7 @@ deleteconn:
conns[i].lasttime = time(NULL);
}
}
- } /* end of while(1) */
+ } /* end of while (1) */
return 0;
}
diff --git a/networking/ifconfig.c b/networking/ifconfig.c
index 242bd06..dd4ce5e 100644
--- a/networking/ifconfig.c
+++ b/networking/ifconfig.c
@@ -497,7 +497,7 @@ int ifconfig_main(int argc, char **argv)
ifr.ifr_flags &= ~selector;
if (ioctl(sockfd, SIOCSIFFLAGS, &ifr) < 0)
bb_perror_msg_and_die("SIOCSIFFLAGS");
- } /* while() */
+ } /* while () */
if (ENABLE_FEATURE_CLEAN_UP)
close(sockfd);
diff --git a/networking/inetd.c b/networking/inetd.c
index 7c89be2..75665ba 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -835,7 +835,7 @@ static servtab_t *getconfigent(void)
sigaddset(&m, SIGHUP); \
sigaddset(&m, SIGALRM); \
sigprocmask(SIG_BLOCK, &m, NULL); \
-} while(0)
+} while (0)
static servtab_t *enter(servtab_t *cp)
{
@@ -1495,7 +1495,7 @@ do_exit1:
if (!sep->se_wait && sep->se_socktype == SOCK_STREAM)
close(ctrl);
} /* for (sep = servtab...) */
- } /* for(;;) */
+ } /* for (;;) */
}
/*
diff --git a/networking/ipcalc.c b/networking/ipcalc.c
index 0ee9646..685f0e3 100644
--- a/networking/ipcalc.c
+++ b/networking/ipcalc.c
@@ -43,7 +43,7 @@ static int get_prefix(unsigned long netmask)
int ret = 0;
netmask = htonl(netmask);
- while(msk) {
+ while (msk) {
if (netmask & msk)
ret++;
msk >>= 1;
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h
index 0b0d754..98634dd 100644
--- a/networking/libiproute/utils.h
+++ b/networking/libiproute/utils.h
@@ -30,7 +30,7 @@ extern char * _SL_;
extern void incomplete_command(void) ATTRIBUTE_NORETURN;
-#define NEXT_ARG() do { argv++; if (--argc <= 0) incomplete_command(); } while(0)
+#define NEXT_ARG() do { argv++; if (--argc <= 0) incomplete_command(); } while (0)
typedef struct
{
diff --git a/networking/telnet.c b/networking/telnet.c
index 6085d88..e65b691 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -320,7 +320,7 @@ static void putiac_subopt(byte c, char *str)
putiac(c);
putiac(0);
- while(*str)
+ while (*str)
putiac(*str++);
putiac(IAC);
@@ -343,12 +343,12 @@ static void putiac_subopt_autologin(void)
putiac(TELQUAL_IS);
putiac(NEW_ENV_VAR);
- while(*user)
+ while (*user)
putiac(*user++);
putiac(NEW_ENV_VALUE);
- while(*autologin)
+ while (*autologin)
putiac(*autologin++);
putiac(IAC);
diff --git a/networking/traceroute.c b/networking/traceroute.c
index adb9ef0..0f3da90 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -989,7 +989,7 @@ traceroute_main(int argc, char *argv[])
if (sourse_route_list) {
llist_t *l_sr;
- for(l_sr = sourse_route_list; l_sr; ) {
+ for (l_sr = sourse_route_list; l_sr; ) {
if (lsrr >= NGATEWAYS)
bb_error_msg_and_die("no more than %d gateways", NGATEWAYS);
getaddr(gwlist + lsrr, l_sr->data);