aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-30 00:29:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-30 00:29:55 +0000
commit4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b (patch)
tree7dfc507c1a7d14fb61d4fd0c68481e01b4a36ba1
parent4ef7d3a2de3df27dde80a64987202f10aebfe925 (diff)
downloadbusybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.tar.gz
busybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.tar.bz2
busybox-w32-4b924f3a5c9c549c75deed8bdda2cbd82fd7f64b.zip
whitespace fixes
-rw-r--r--archival/libunarchive/decompress_bunzip2.c4
-rw-r--r--coreutils/stty.c2
-rw-r--r--docs/new-applet-HOWTO.txt12
-rw-r--r--docs/nofork_noexec.txt2
-rw-r--r--editors/sed.c2
-rw-r--r--include/libbb.h2
-rw-r--r--include/usage.h10
-rw-r--r--ipsvd/ipsvd_perhost.c2
-rw-r--r--ipsvd/ipsvd_perhost.h4
-rw-r--r--libbb/match_fstype.c2
-rw-r--r--libbb/udp_io.c2
-rw-r--r--loginutils/Config.in2
-rw-r--r--loginutils/addgroup.c4
-rw-r--r--loginutils/cryptpw.c2
-rw-r--r--loginutils/deluser.c8
-rw-r--r--miscutils/hdparm.c4
-rw-r--r--networking/ifupdown.c2
-rw-r--r--networking/nc_bloaty.c4
-rw-r--r--networking/netstat.c8
-rw-r--r--networking/tftp.c2
-rw-r--r--networking/udhcp/dhcpd.c4
-rw-r--r--scripts/basic/docproc.c52
-rw-r--r--scripts/kconfig/conf.c2
-rw-r--r--scripts/kconfig/expr.c2
-rw-r--r--scripts/kconfig/gconf.c2
-rw-r--r--scripts/kconfig/kconfig_load.c4
-rw-r--r--shell/hush.c8
-rw-r--r--shell/msh.c8
-rw-r--r--util-linux/getopt.c2
29 files changed, 82 insertions, 82 deletions
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index 3f0b0f6f2..a9d5d686b 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -692,8 +692,8 @@ int start_bunzip(bunzip_data **bdp, int in_fd, const unsigned char *inbuf,
692 692
693void dealloc_bunzip(bunzip_data *bd) 693void dealloc_bunzip(bunzip_data *bd)
694{ 694{
695 free(bd->dbuf); 695 free(bd->dbuf);
696 free(bd); 696 free(bd);
697} 697}
698 698
699 699
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 488a7f8fb..e6d054ff2 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -632,7 +632,7 @@ static void display_speed(const struct termios *mode, int fancy)
632 ospeed = ispeed = cfgetispeed(mode); 632 ospeed = ispeed = cfgetispeed(mode);
633 if (ispeed == 0 || ispeed == (ospeed = cfgetospeed(mode))) { 633 if (ispeed == 0 || ispeed == (ospeed = cfgetospeed(mode))) {
634 ispeed = ospeed; /* in case ispeed was 0 */ 634 ispeed = ospeed; /* in case ispeed was 0 */
635 //0123 4 5 6 7 8 9 635 //0123 4 5 6 7 8 9
636 fmt_str = "%lu\n\0\0\0\0\0speed %lu baud;"; 636 fmt_str = "%lu\n\0\0\0\0\0speed %lu baud;";
637 } 637 }
638 if (fancy) fmt_str += 9; 638 if (fancy) fmt_str += 9;
diff --git a/docs/new-applet-HOWTO.txt b/docs/new-applet-HOWTO.txt
index 2bc938f14..05ff92f26 100644
--- a/docs/new-applet-HOWTO.txt
+++ b/docs/new-applet-HOWTO.txt
@@ -97,15 +97,15 @@ int function(char *a)
97 97
98----end example code------ 98----end example code------
99 99
100Add <function_name>.o in the right alphabetically sorted place 100Add <function_name>.o in the right alphabetically sorted place
101in libbb/Kbuild. You should look at the conditional part of 101in libbb/Kbuild. You should look at the conditional part of
102libbb/Kbuild aswell. 102libbb/Kbuild aswell.
103 103
104You should also try to find a suitable place in include/libbb.h for 104You should also try to find a suitable place in include/libbb.h for
105the function declaration. If not, add it somewhere anyway, with or without 105the function declaration. If not, add it somewhere anyway, with or without
106ifdefs to include or not. 106ifdefs to include or not.
107 107
108You can look at libbb/Config.in and try to find out if the function is 108You can look at libbb/Config.in and try to find out if the function is
109tuneable and add it there if it is. 109tuneable and add it there if it is.
110 110
111 111
@@ -170,10 +170,10 @@ The Grand Announcement
170 170
171Then create a diff by adding the new files with svn (remember your libbb files) 171Then create a diff by adding the new files with svn (remember your libbb files)
172 svn add <where you put it>/mu.c 172 svn add <where you put it>/mu.c
173eventually also: 173eventually also:
174 svn add libbb/function.c 174 svn add libbb/function.c
175then 175then
176 svn diff 176 svn diff
177and send it to the mailing list: 177and send it to the mailing list:
178 busybox@busybox.net 178 busybox@busybox.net
179 http://busybox.net/mailman/listinfo/busybox 179 http://busybox.net/mailman/listinfo/busybox
diff --git a/docs/nofork_noexec.txt b/docs/nofork_noexec.txt
index 51bbcba3b..d4abdf452 100644
--- a/docs/nofork_noexec.txt
+++ b/docs/nofork_noexec.txt
@@ -12,7 +12,7 @@ are exactly those applets which are eligible for these tricks.
12 12
13Applet will be subject to NOFORK/NOEXEC tricks if it is marked as such 13Applet will be subject to NOFORK/NOEXEC tricks if it is marked as such
14in applets.h. CONFIG_FEATURE_PREFER_APPLETS is a config option which 14in applets.h. CONFIG_FEATURE_PREFER_APPLETS is a config option which
15globally enables usage of NOFORK/NOEXEC tricks. 15globally enables usage of NOFORK/NOEXEC tricks.
16 16
17If you want to call a program and wait for it, use spawn_and_wait(argv). 17If you want to call a program and wait for it, use spawn_and_wait(argv).
18It will check whether argv[0] is an applet name and will optionally 18It will check whether argv[0] is an applet name and will optionally
diff --git a/editors/sed.c b/editors/sed.c
index b3c4430a1..d49627ff4 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1223,7 +1223,7 @@ int sed_main(int argc, char **argv)
1223 int status = EXIT_SUCCESS; 1223 int status = EXIT_SUCCESS;
1224 1224
1225 if (sizeof(struct globals) > sizeof(bb_common_bufsiz1)) 1225 if (sizeof(struct globals) > sizeof(bb_common_bufsiz1))
1226 BUG_sed_globals_too_big(); 1226 BUG_sed_globals_too_big();
1227 1227
1228 G.sed_cmd_tail = &G.sed_cmd_head; 1228 G.sed_cmd_tail = &G.sed_cmd_head;
1229 1229
diff --git a/include/libbb.h b/include/libbb.h
index 4561ef6a5..5e0b438be 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -590,7 +590,7 @@ void *llist_pop(llist_t **elm);
590void llist_unlink(llist_t **head, llist_t *elm); 590void llist_unlink(llist_t **head, llist_t *elm);
591void llist_free(llist_t *elm, void (*freeit)(void *data)); 591void llist_free(llist_t *elm, void (*freeit)(void *data));
592llist_t *llist_rev(llist_t *list); 592llist_t *llist_rev(llist_t *list);
593/* BTW, surprisingly, changing API to 593/* BTW, surprisingly, changing API to
594 * llist_t *llist_add_to(llist_t *old_head, void *data) 594 * llist_t *llist_add_to(llist_t *old_head, void *data)
595 * etc does not result in smaller code... */ 595 * etc does not result in smaller code... */
596 596
diff --git a/include/usage.h b/include/usage.h
index 4a18d6a3a..085bbdd7b 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -578,10 +578,10 @@
578 "Deallocate unused virtual terminal /dev/ttyN" 578 "Deallocate unused virtual terminal /dev/ttyN"
579 579
580#define delgroup_trivial_usage \ 580#define delgroup_trivial_usage \
581 USE_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP" 581 USE_FEATURE_DEL_USER_FROM_GROUP("[USER] ")"GROUP"
582#define delgroup_full_usage \ 582#define delgroup_full_usage \
583 "Delete group GROUP from the system" \ 583 "Delete group GROUP from the system" \
584 USE_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP") 584 USE_FEATURE_DEL_USER_FROM_GROUP(" or user USER from group GROUP")
585 585
586#define deluser_trivial_usage \ 586#define deluser_trivial_usage \
587 "USER" 587 "USER"
@@ -966,7 +966,7 @@
966 ) USE_FEATURE_FIND_EXEC( \ 966 ) USE_FEATURE_FIND_EXEC( \
967 "\n -exec CMD Execute CMD with all instances of {} replaced by the" \ 967 "\n -exec CMD Execute CMD with all instances of {} replaced by the" \
968 "\n files matching EXPRESSION" \ 968 "\n files matching EXPRESSION" \
969 ) USE_FEATURE_FIND_USER( \ 969 ) USE_FEATURE_FIND_USER( \
970 "\n -user NAME File is owned by user NAME (numeric user ID allowed)" \ 970 "\n -user NAME File is owned by user NAME (numeric user ID allowed)" \
971 ) USE_FEATURE_FIND_GROUP( \ 971 ) USE_FEATURE_FIND_GROUP( \
972 "\n -group NAME File belongs to group NAME (numeric group ID allowed)" \ 972 "\n -group NAME File belongs to group NAME (numeric group ID allowed)" \
@@ -976,9 +976,9 @@
976 "\n -size N File size is N" \ 976 "\n -size N File size is N" \
977 ) USE_FEATURE_FIND_PRUNE( \ 977 ) USE_FEATURE_FIND_PRUNE( \
978 "\n -prune Stop traversing current subtree" \ 978 "\n -prune Stop traversing current subtree" \
979 ) USE_FEATURE_FIND_DELETE( \ 979 ) USE_FEATURE_FIND_DELETE( \
980 "\n -delete Delete files; Turns on -depth option" \ 980 "\n -delete Delete files; Turns on -depth option" \
981 ) USE_FEATURE_FIND_PATH( \ 981 ) USE_FEATURE_FIND_PATH( \
982 "\n -path Path matches PATTERN" \ 982 "\n -path Path matches PATTERN" \
983 ) USE_FEATURE_FIND_PAREN( \ 983 ) USE_FEATURE_FIND_PAREN( \
984 "\n (EXPR) Group an expression" \ 984 "\n (EXPR) Group an expression" \
diff --git a/ipsvd/ipsvd_perhost.c b/ipsvd/ipsvd_perhost.c
index ed802f027..d4c0d795f 100644
--- a/ipsvd/ipsvd_perhost.c
+++ b/ipsvd/ipsvd_perhost.c
@@ -31,7 +31,7 @@ unsigned ipsvd_perhost_add(char *ip, unsigned maxconn, struct hcc **hccpp)
31 for (i = 0; i < cclen; ++i) { 31 for (i = 0; i < cclen; ++i) {
32 if (!cc[i].ip) { 32 if (!cc[i].ip) {
33 freepos = i; 33 freepos = i;
34 continue; 34 continue;
35 } 35 }
36 if (strcmp(cc[i].ip, ip) == 0) { 36 if (strcmp(cc[i].ip, ip) == 0) {
37 conn++; 37 conn++;
diff --git a/ipsvd/ipsvd_perhost.h b/ipsvd/ipsvd_perhost.h
index cf08000e0..afe2c296c 100644
--- a/ipsvd/ipsvd_perhost.h
+++ b/ipsvd/ipsvd_perhost.h
@@ -8,8 +8,8 @@
8 */ 8 */
9 9
10struct hcc { 10struct hcc {
11 char *ip; 11 char *ip;
12 int pid; 12 int pid;
13}; 13};
14 14
15void ipsvd_perhost_init(unsigned); 15void ipsvd_perhost_init(unsigned);
diff --git a/libbb/match_fstype.c b/libbb/match_fstype.c
index 7698ceb08..bd4dbb064 100644
--- a/libbb/match_fstype.c
+++ b/libbb/match_fstype.c
@@ -19,7 +19,7 @@ int match_fstype(const struct mntent *mt, const char *fstype)
19 19
20 if (!mt) 20 if (!mt)
21 return -1; 21 return -1;
22 22
23 if (!fstype) 23 if (!fstype)
24 return 0; 24 return 0;
25 25
diff --git a/libbb/udp_io.c b/libbb/udp_io.c
index d834a237b..7e48d32f3 100644
--- a/libbb/udp_io.c
+++ b/libbb/udp_io.c
@@ -51,7 +51,7 @@ send_to_from(int fd, void *buf, size_t len, int flags,
51 /* ANY local address */ 51 /* ANY local address */
52 return sendto(fd, buf, len, flags, to, tolen); 52 return sendto(fd, buf, len, flags, to, tolen);
53 } 53 }
54 54
55 /* man recvmsg and man cmsg is needed to make sense of code below */ 55 /* man recvmsg and man cmsg is needed to make sense of code below */
56 56
57 iov[0].iov_base = buf; 57 iov[0].iov_base = buf;
diff --git a/loginutils/Config.in b/loginutils/Config.in
index 919091ec6..cab7a11a0 100644
--- a/loginutils/Config.in
+++ b/loginutils/Config.in
@@ -79,7 +79,7 @@ config FEATURE_DEL_USER_FROM_GROUP
79 default n 79 default n
80 depends on DELGROUP 80 depends on DELGROUP
81 help 81 help
82 If called with two non-option arguments, deluser 82 If called with two non-option arguments, deluser
83 or delgroup will remove an user from a specified group. 83 or delgroup will remove an user from a specified group.
84 84
85config ADDUSER 85config ADDUSER
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 2487aad31..b29b66527 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -23,7 +23,7 @@ static void xgroup_study(struct group *g)
23 goto error; 23 goto error;
24 } 24 }
25 25
26 /* Check if the desired gid is free or 26 /* Check if the desired gid is free or
27 find the first free one */ 27 find the first free one */
28 do { 28 do {
29 if (g->gr_gid == max) { /* out of bounds: exit */ 29 if (g->gr_gid == max) { /* out of bounds: exit */
@@ -147,7 +147,7 @@ int addgroup_main(int argc, char **argv)
147#if ENABLE_FEATURE_ADDUSER_TO_GROUP 147#if ENABLE_FEATURE_ADDUSER_TO_GROUP
148 if (argc == 2) { 148 if (argc == 2) {
149 struct group *gr; 149 struct group *gr;
150 150
151 /* check if group and user exist */ 151 /* check if group and user exist */
152 xuname2uid(argv[0]); /* unknown user: exit */ 152 xuname2uid(argv[0]); /* unknown user: exit */
153 xgroup2gid(argv[1]); /* unknown group: exit */ 153 xgroup2gid(argv[1]); /* unknown group: exit */
diff --git a/loginutils/cryptpw.c b/loginutils/cryptpw.c
index 0c298c50d..dd7304613 100644
--- a/loginutils/cryptpw.c
+++ b/loginutils/cryptpw.c
@@ -1,7 +1,7 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * cryptpw.c 3 * cryptpw.c
4 * 4 *
5 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no> 5 * Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
6 */ 6 */
7 7
diff --git a/loginutils/deluser.c b/loginutils/deluser.c
index 59e69b9e9..0e4f02ddc 100644
--- a/loginutils/deluser.c
+++ b/loginutils/deluser.c
@@ -96,14 +96,14 @@ static void del_line_matching(char **args,
96int deluser_main(int argc, char **argv); 96int deluser_main(int argc, char **argv);
97int deluser_main(int argc, char **argv) 97int deluser_main(int argc, char **argv)
98{ 98{
99 if (argc == 2 99 if (argc == 2
100 || (ENABLE_FEATURE_DEL_USER_FROM_GROUP 100 || (ENABLE_FEATURE_DEL_USER_FROM_GROUP
101 && (applet_name[3] == 'g' && argc == 3)) 101 && (applet_name[3] == 'g' && argc == 3))
102 ) { 102 ) {
103 if (geteuid()) 103 if (geteuid())
104 bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); 104 bb_error_msg_and_die(bb_msg_perm_denied_are_you_root);
105 105
106 if ((ENABLE_FEATURE_DEL_USER_FROM_GROUP && argc != 3) 106 if ((ENABLE_FEATURE_DEL_USER_FROM_GROUP && argc != 3)
107 || ENABLE_DELUSER 107 || ENABLE_DELUSER
108 || (ENABLE_DELGROUP && ENABLE_DESKTOP) 108 || (ENABLE_DELGROUP && ENABLE_DESKTOP)
109 ) { 109 ) {
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 181ac5f6e..fe4c67a9a 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -39,7 +39,7 @@
39#define LENGTH_FW_REV 4 /* 4 words (8 bytes or characters) */ 39#define LENGTH_FW_REV 4 /* 4 words (8 bytes or characters) */
40#define START_MODEL 27 /* ASCII model number */ 40#define START_MODEL 27 /* ASCII model number */
41#define LENGTH_MODEL 20 /* 20 words (40 bytes or characters) */ 41#define LENGTH_MODEL 20 /* 20 words (40 bytes or characters) */
42#define SECTOR_XFER_MAX 47 /* r/w multiple: max sectors xfered */ 42#define SECTOR_XFER_MAX 47 /* r/w multiple: max sectors xfered */
43#define DWORD_IO 48 /* can do double-word IO (ATA-1 only) */ 43#define DWORD_IO 48 /* can do double-word IO (ATA-1 only) */
44#define CAPAB_0 49 /* capabilities */ 44#define CAPAB_0 49 /* capabilities */
45#define CAPAB_1 50 45#define CAPAB_1 50
@@ -48,7 +48,7 @@
48#define WHATS_VALID 53 /* what fields are valid */ 48#define WHATS_VALID 53 /* what fields are valid */
49#define LCYLS_CUR 54 /* current logical cylinders */ 49#define LCYLS_CUR 54 /* current logical cylinders */
50#define LHEADS_CUR 55 /* current logical heads */ 50#define LHEADS_CUR 55 /* current logical heads */
51#define LSECTS_CUR 56 /* current logical sectors/track */ 51#define LSECTS_CUR 56 /* current logical sectors/track */
52#define CAPACITY_LSB 57 /* current capacity in sectors */ 52#define CAPACITY_LSB 57 /* current capacity in sectors */
53#define CAPACITY_MSB 58 53#define CAPACITY_MSB 58
54#define SECTOR_XFER_CUR 59 /* r/w multiple: current sectors xfered */ 54#define SECTOR_XFER_CUR 59 /* r/w multiple: current sectors xfered */
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 8e8341e96..2b748f11d 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -484,7 +484,7 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec)
484 ifd, exec); 484 ifd, exec);
485#else 485#else
486 return 0; /* no dhcp support */ 486 return 0; /* no dhcp support */
487#endif 487#endif
488} 488}
489 489
490static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) 490static int dhcp_down(struct interface_defn_t *ifd, execfn *exec)
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c
index 3e333b7d5..5096e3227 100644
--- a/networking/nc_bloaty.c
+++ b/networking/nc_bloaty.c
@@ -350,7 +350,7 @@ create new one, and bind() it. TODO */
350 close(rr); 350 close(rr);
351 goto again; 351 goto again;
352 } 352 }
353 353
354 } else 354 } else
355 bb_error_msg_and_die("timeout"); 355 bb_error_msg_and_die("timeout");
356 unarm(); 356 unarm();
@@ -720,7 +720,7 @@ int nc_main(int argc, char **argv)
720 } 720 }
721 proggie = NULL; 721 proggie = NULL;
722 e_found: 722 e_found:
723 723
724 // -g -G -t -r deleted, unimplemented -a deleted too 724 // -g -G -t -r deleted, unimplemented -a deleted too
725 opt_complementary = "?2:vv"; /* max 2 params, -v is a counter */ 725 opt_complementary = "?2:vv"; /* max 2 params, -v is a counter */
726 getopt32(argc, argv, "hnp:s:uvw:" USE_NC_SERVER("l") 726 getopt32(argc, argv, "hnp:s:uvw:" USE_NC_SERVER("l")
diff --git a/networking/netstat.c b/networking/netstat.c
index 38091ae3a..d6c10b07b 100644
--- a/networking/netstat.c
+++ b/networking/netstat.c
@@ -98,13 +98,13 @@ static void build_ipv6_addr(char* local_addr, struct sockaddr_in6* localaddr)
98{ 98{
99 char addr6[INET6_ADDRSTRLEN]; 99 char addr6[INET6_ADDRSTRLEN];
100 struct in6_addr in6; 100 struct in6_addr in6;
101 101
102 sscanf(local_addr, "%08X%08X%08X%08X", 102 sscanf(local_addr, "%08X%08X%08X%08X",
103 &in6.s6_addr32[0], &in6.s6_addr32[1], 103 &in6.s6_addr32[0], &in6.s6_addr32[1],
104 &in6.s6_addr32[2], &in6.s6_addr32[3]); 104 &in6.s6_addr32[2], &in6.s6_addr32[3]);
105 inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6)); 105 inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6));
106 inet_pton(AF_INET6, addr6, (struct sockaddr *) &localaddr->sin6_addr); 106 inet_pton(AF_INET6, addr6, (struct sockaddr *) &localaddr->sin6_addr);
107 107
108 localaddr->sin6_family = AF_INET6; 108 localaddr->sin6_family = AF_INET6;
109} 109}
110#endif 110#endif
@@ -154,7 +154,7 @@ static void snprint_ip_port(char *ip_port, int size, struct sockaddr *addr, int
154 0xffffffff); 154 0xffffffff);
155 } 155 }
156 port_name = get_sname(htons(port), proto, numeric); 156 port_name = get_sname(htons(port), proto, numeric);
157 157
158 max_len = (option_mask32 & OPT_widedisplay) 158 max_len = (option_mask32 & OPT_widedisplay)
159 ? (PRINT_IP_MAX_SIZE_WIDE - 1) 159 ? (PRINT_IP_MAX_SIZE_WIDE - 1)
160 : (PRINT_IP_MAX_SIZE - 1); 160 : (PRINT_IP_MAX_SIZE - 1);
@@ -292,7 +292,7 @@ static void udp_do_one(int lnr, const char *line)
292 (struct sockaddr *) &remaddr, rem_port, 292 (struct sockaddr *) &remaddr, rem_port,
293 "udp", flags & NETSTAT_NUMERIC); 293 "udp", flags & NETSTAT_NUMERIC);
294 printf(net_conn_line, 294 printf(net_conn_line,
295 "udp", rxq, txq, local_addr, rem_addr, state_str); 295 "udp", rxq, txq, local_addr, rem_addr, state_str);
296 } 296 }
297 } 297 }
298} 298}
diff --git a/networking/tftp.c b/networking/tftp.c
index e1e278aba..8517830b7 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -353,7 +353,7 @@ static int tftp( USE_GETPUT(const int cmd,)
353 /* Server lost our TFTP_ACK. Resend it */ 353 /* Server lost our TFTP_ACK. Resend it */
354 block_nr = recv_blk; 354 block_nr = recv_blk;
355 continue; 355 continue;
356 } 356 }
357 } 357 }
358 358
359 if (CMD_PUT(cmd) && (opcode == TFTP_ACK)) { 359 if (CMD_PUT(cmd) && (opcode == TFTP_ACK)) {
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 9f96e8bd1..778121b61 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -37,8 +37,8 @@ int udhcpd_main(int argc, char **argv)
37//Huh, dhcpd don't have --foreground, --syslog options?? TODO 37//Huh, dhcpd don't have --foreground, --syslog options?? TODO
38 38
39 if (!ENABLE_FEATURE_UDHCP_DEBUG) { 39 if (!ENABLE_FEATURE_UDHCP_DEBUG) {
40 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv); 40 bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
41 logmode &= ~LOGMODE_STDIO; 41 logmode &= ~LOGMODE_STDIO;
42 } 42 }
43 43
44 if (ENABLE_FEATURE_UDHCP_SYSLOG) { 44 if (ENABLE_FEATURE_UDHCP_SYSLOG) {
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c
index a1b761bbd..e178d72d2 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -123,7 +123,7 @@ int symfilecnt = 0;
123void add_new_symbol(struct symfile *sym, char * symname) 123void add_new_symbol(struct symfile *sym, char * symname)
124{ 124{
125 sym->symbollist = 125 sym->symbollist =
126 realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); 126 realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *));
127 sym->symbollist[sym->symbolcnt++].name = strdup(symname); 127 sym->symbollist[sym->symbolcnt++].name = strdup(symname);
128} 128}
129 129
@@ -182,7 +182,7 @@ void find_export_symbols(char * filename)
182 char *p; 182 char *p;
183 char *e; 183 char *e;
184 if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) || 184 if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) ||
185 ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) { 185 ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) {
186 /* Skip EXPORT_SYMBOL{_GPL} */ 186 /* Skip EXPORT_SYMBOL{_GPL} */
187 while (isalnum(*p) || *p == '_') 187 while (isalnum(*p) || *p == '_')
188 p++; 188 p++;
@@ -256,24 +256,24 @@ void extfunc(char * filename) { docfunctions(filename, FUNCTION); }
256void singfunc(char * filename, char * line) 256void singfunc(char * filename, char * line)
257{ 257{
258 char *vec[200]; /* Enough for specific functions */ 258 char *vec[200]; /* Enough for specific functions */
259 int i, idx = 0; 259 int i, idx = 0;
260 int startofsym = 1; 260 int startofsym = 1;
261 vec[idx++] = KERNELDOC; 261 vec[idx++] = KERNELDOC;
262 vec[idx++] = DOCBOOK; 262 vec[idx++] = DOCBOOK;
263 263
264 /* Split line up in individual parameters preceeded by FUNCTION */ 264 /* Split line up in individual parameters preceeded by FUNCTION */
265 for (i=0; line[i]; i++) { 265 for (i=0; line[i]; i++) {
266 if (isspace(line[i])) { 266 if (isspace(line[i])) {
267 line[i] = '\0'; 267 line[i] = '\0';
268 startofsym = 1; 268 startofsym = 1;
269 continue; 269 continue;
270 } 270 }
271 if (startofsym) { 271 if (startofsym) {
272 startofsym = 0; 272 startofsym = 0;
273 vec[idx++] = FUNCTION; 273 vec[idx++] = FUNCTION;
274 vec[idx++] = &line[i]; 274 vec[idx++] = &line[i];
275 } 275 }
276 } 276 }
277 vec[idx++] = filename; 277 vec[idx++] = filename;
278 vec[idx] = NULL; 278 vec[idx] = NULL;
279 exec_kernel_doc(vec); 279 exec_kernel_doc(vec);
@@ -307,14 +307,14 @@ void parse_file(FILE *infile)
307 break; 307 break;
308 case 'D': 308 case 'D':
309 while (*s && !isspace(*s)) s++; 309 while (*s && !isspace(*s)) s++;
310 *s = '\0'; 310 *s = '\0';
311 symbolsonly(line+2); 311 symbolsonly(line+2);
312 break; 312 break;
313 case 'F': 313 case 'F':
314 /* filename */ 314 /* filename */
315 while (*s && !isspace(*s)) s++; 315 while (*s && !isspace(*s)) s++;
316 *s++ = '\0'; 316 *s++ = '\0';
317 /* function names */ 317 /* function names */
318 while (isspace(*s)) 318 while (isspace(*s))
319 s++; 319 s++;
320 singlefunctions(line +2, s); 320 singlefunctions(line +2, s);
@@ -340,11 +340,11 @@ int main(int argc, char **argv)
340 } 340 }
341 /* Open file, exit on error */ 341 /* Open file, exit on error */
342 infile = fopen(argv[2], "r"); 342 infile = fopen(argv[2], "r");
343 if (infile == NULL) { 343 if (infile == NULL) {
344 fprintf(stderr, "docproc: "); 344 fprintf(stderr, "docproc: ");
345 perror(argv[2]); 345 perror(argv[2]);
346 exit(2); 346 exit(2);
347 } 347 }
348 348
349 if (strcmp("doc", argv[1]) == 0) 349 if (strcmp("doc", argv[1]) == 0)
350 { 350 {
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 02693b791..2a1a59fc3 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -536,7 +536,7 @@ int main(int ac, char **av)
536 exit(0); 536 exit(0);
537 } 537 }
538 } 538 }
539 name = av[i]; 539 name = av[i];
540 if (!name) { 540 if (!name) {
541 printf(_("%s: Kconfig file missing\n"), av[0]); 541 printf(_("%s: Kconfig file missing\n"), av[0]);
542 } 542 }
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c
index 30e4f9d69..6f39e7a25 100644
--- a/scripts/kconfig/expr.c
+++ b/scripts/kconfig/expr.c
@@ -824,7 +824,7 @@ bool expr_depends_symbol(struct expr *dep, struct symbol *sym)
824 default: 824 default:
825 ; 825 ;
826 } 826 }
827 return false; 827 return false;
828} 828}
829 829
830struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2) 830struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2)
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 6d372997d..fd3002bd3 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -1516,7 +1516,7 @@ static void display_tree(struct menu *menu)
1516 && (tree == tree2)) 1516 && (tree == tree2))
1517 continue; 1517 continue;
1518/* 1518/*
1519 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT)) 1519 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
1520 || (view_mode == FULL_VIEW) 1520 || (view_mode == FULL_VIEW)
1521 || (view_mode == SPLIT_VIEW))*/ 1521 || (view_mode == SPLIT_VIEW))*/
1522 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT)) 1522 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT))
diff --git a/scripts/kconfig/kconfig_load.c b/scripts/kconfig/kconfig_load.c
index dbdcaad82..5e87dd555 100644
--- a/scripts/kconfig/kconfig_load.c
+++ b/scripts/kconfig/kconfig_load.c
@@ -25,8 +25,8 @@ void kconfig_load(void)
25#define P(name,type,arg) \ 25#define P(name,type,arg) \
26{ \ 26{ \
27 name ## _p = dlsym(handle, #name); \ 27 name ## _p = dlsym(handle, #name); \
28 if ((error = dlerror())) { \ 28 if ((error = dlerror())) { \
29 fprintf(stderr, "%s\n", error); \ 29 fprintf(stderr, "%s\n", error); \
30 exit(1); \ 30 exit(1); \
31 } \ 31 } \
32} 32}
diff --git a/shell/hush.c b/shell/hush.c
index 6844f06c2..7aad6e6e4 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -415,7 +415,7 @@ enum { run_list_level = 0 };
415#define shell_ver (G.shell_ver ) 415#define shell_ver (G.shell_ver )
416#if ENABLE_FEATURE_SH_STANDALONE 416#if ENABLE_FEATURE_SH_STANDALONE
417#define nofork_save (G.nofork_save ) 417#define nofork_save (G.nofork_save )
418#endif 418#endif
419#if ENABLE_HUSH_JOB 419#if ENABLE_HUSH_JOB
420#define toplevel_jb (G.toplevel_jb ) 420#define toplevel_jb (G.toplevel_jb )
421#endif 421#endif
@@ -1876,7 +1876,7 @@ static int run_pipe_real(struct pipe *pi)
1876 return -1; 1876 return -1;
1877} 1877}
1878 1878
1879#ifndef debug_print_tree 1879#ifndef debug_print_tree
1880static void debug_print_tree(struct pipe *pi, int lvl) 1880static void debug_print_tree(struct pipe *pi, int lvl)
1881{ 1881{
1882 static const char *PIPE[] = { 1882 static const char *PIPE[] = {
@@ -1929,7 +1929,7 @@ static void debug_print_tree(struct pipe *pi, int lvl)
1929 if (argv) while (*argv) { 1929 if (argv) while (*argv) {
1930 fprintf(stderr, " '%s'", *argv); 1930 fprintf(stderr, " '%s'", *argv);
1931 argv++; 1931 argv++;
1932 } 1932 }
1933 fprintf(stderr, "\n"); 1933 fprintf(stderr, "\n");
1934 prn++; 1934 prn++;
1935 } 1935 }
@@ -2114,7 +2114,7 @@ static int run_list_real(struct pipe *pi)
2114 * try "{ { sleep 10; echo DEEP; } & echo HERE; } &". 2114 * try "{ { sleep 10; echo DEEP; } & echo HERE; } &".
2115 * I'm NOT treating inner &'s as jobs */ 2115 * I'm NOT treating inner &'s as jobs */
2116#if ENABLE_HUSH_JOB 2116#if ENABLE_HUSH_JOB
2117 if (run_list_level == 1) 2117 if (run_list_level == 1)
2118 insert_bg_job(pi); 2118 insert_bg_job(pi);
2119#endif 2119#endif
2120 rcode = EXIT_SUCCESS; 2120 rcode = EXIT_SUCCESS;
diff --git a/shell/msh.c b/shell/msh.c
index ac49af14c..d81a00122 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -58,10 +58,10 @@ static char *utoa_to_buf(unsigned n, char *buf, unsigned buflen)
58 for (i = 1000000000; i; i /= 10) { 58 for (i = 1000000000; i; i /= 10) {
59 res = n / i; 59 res = n / i;
60 if (res || out || i == 1) { 60 if (res || out || i == 1) {
61 if (!--buflen) break; 61 if (!--buflen) break;
62 out++; 62 out++;
63 n -= res*i; 63 n -= res*i;
64 *buf++ = '0' + res; 64 *buf++ = '0' + res;
65 } 65 }
66 } 66 }
67 } 67 }
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index b4749c199..06c348895 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -287,7 +287,7 @@ int getopt_main(int argc, char *argv[])
287 char *name = NULL; 287 char *name = NULL;
288 unsigned opt; 288 unsigned opt;
289 const char *compatible; 289 const char *compatible;
290 char *s_arg; 290 char *s_arg;
291#if ENABLE_GETOPT_LONG 291#if ENABLE_GETOPT_LONG
292 struct option *long_options = NULL; 292 struct option *long_options = NULL;
293 llist_t *l_arg = NULL; 293 llist_t *l_arg = NULL;