aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapplets/install.sh4
-rw-r--r--archival/dpkg.c2
-rw-r--r--archival/gzip.c8
-rw-r--r--archival/libunarchive/get_header_tar.c4
-rw-r--r--coreutils/wc.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/chattr.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/block.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/fileio.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/openfs.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/mke2fs.c8
-rw-r--r--editors/diff.c4
-rw-r--r--editors/vi.c2
-rw-r--r--include/usage.h26
-rw-r--r--include/xatonum.h2
-rw-r--r--libbb/human_readable.c2
-rw-r--r--libbb/speed_table.c4
-rw-r--r--libpwdgrp/pwd_grp.c4
-rw-r--r--miscutils/devfsd.c4
-rw-r--r--networking/interface.c2
-rw-r--r--networking/libiproute/ip_parse_common_args.c2
-rw-r--r--networking/libiproute/ipaddress.c2
-rw-r--r--shell/ash.c2
-rw-r--r--util-linux/fdisk.c4
-rw-r--r--util-linux/fdisk_sgi.c10
-rw-r--r--util-linux/fdisk_sun.c2
28 files changed, 58 insertions, 58 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 4ec96c254..b02350262 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -43,7 +43,7 @@ if [ "$cleanup" = "1" ] && [ -e "$prefix/bin/busybox" ]; then
43 inode=`ls -i "$prefix/bin/busybox" | awk '{print $1}'` 43 inode=`ls -i "$prefix/bin/busybox" | awk '{print $1}'`
44 sub_shell_it=` 44 sub_shell_it=`
45 cd "$prefix" 45 cd "$prefix"
46 for d in usr/sbin usr/bin sbin bin ; do 46 for d in usr/sbin usr/bin sbin bin; do
47 pd=$PWD 47 pd=$PWD
48 if [ -d "$d" ]; then 48 if [ -d "$d" ]; then
49 cd $d 49 cd $d
@@ -58,7 +58,7 @@ rm -f $prefix/bin/busybox || exit 1
58mkdir -p $prefix/bin || exit 1 58mkdir -p $prefix/bin || exit 1
59install -m 755 busybox $prefix/bin/busybox || exit 1 59install -m 755 busybox $prefix/bin/busybox || exit 1
60 60
61for i in $h ; do 61for i in $h; do
62 appdir=`dirname $i` 62 appdir=`dirname $i`
63 mkdir -p $prefix/$appdir || exit 1 63 mkdir -p $prefix/$appdir || exit 1
64 if [ "$2" = "--hardlinks" ]; then 64 if [ "$2" = "--hardlinks" ]; then
diff --git a/archival/dpkg.c b/archival/dpkg.c
index c40a932ec..0c1f541e0 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -712,7 +712,7 @@ static void set_status(const unsigned status_node_num, const char *new_value, co
712 712
713static const char *describe_status(int status_num) 713static const char *describe_status(int status_num)
714{ 714{
715 int status_want, status_state ; 715 int status_want, status_state;
716 if (status_hashtable[status_num] == NULL || status_hashtable[status_num]->status == 0) 716 if (status_hashtable[status_num] == NULL || status_hashtable[status_num]->status == 0)
717 return "is not installed or flagged to be installed"; 717 return "is not installed or flagged to be installed";
718 718
diff --git a/archival/gzip.c b/archival/gzip.c
index fdf2a794c..08c660e40 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -49,10 +49,10 @@ aa: 85.1% -- replaced with aa.gz
49#ifdef DEBUG 49#ifdef DEBUG
50# define Assert(cond,msg) { if (!(cond)) bb_error_msg(msg); } 50# define Assert(cond,msg) { if (!(cond)) bb_error_msg(msg); }
51# define Trace(x) fprintf x 51# define Trace(x) fprintf x
52# define Tracev(x) {if (verbose) fprintf x ;} 52# define Tracev(x) {if (verbose) fprintf x; }
53# define Tracevv(x) {if (verbose > 1) fprintf x ;} 53# define Tracevv(x) {if (verbose > 1) fprintf x; }
54# define Tracec(c,x) {if (verbose && (c)) fprintf x ;} 54# define Tracec(c,x) {if (verbose && (c)) fprintf x; }
55# define Tracecv(c,x) {if (verbose > 1 && (c)) fprintf x ;} 55# define Tracecv(c,x) {if (verbose > 1 && (c)) fprintf x; }
56#else 56#else
57# define Assert(cond,msg) 57# define Assert(cond,msg)
58# define Trace(x) 58# define Trace(x)
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index 1a7a687cf..e8ef92994 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -122,13 +122,13 @@ char get_header_tar(archive_handle_t *archive_handle)
122 sum_s = ' ' * sizeof(tar.chksum); 122 sum_s = ' ' * sizeof(tar.chksum);
123#endif 123#endif
124 sum_u = ' ' * sizeof(tar.chksum); 124 sum_u = ' ' * sizeof(tar.chksum);
125 for (i = 0; i < 148 ; i++) { 125 for (i = 0; i < 148; i++) {
126 sum_u += ((unsigned char*)&tar)[i]; 126 sum_u += ((unsigned char*)&tar)[i];
127#if ENABLE_FEATURE_TAR_OLDSUN_COMPATIBILITY 127#if ENABLE_FEATURE_TAR_OLDSUN_COMPATIBILITY
128 sum_s += ((signed char*)&tar)[i]; 128 sum_s += ((signed char*)&tar)[i];
129#endif 129#endif
130 } 130 }
131 for (i = 156; i < 512 ; i++) { 131 for (i = 156; i < 512; i++) {
132 sum_u += ((unsigned char*)&tar)[i]; 132 sum_u += ((unsigned char*)&tar)[i];
133#if ENABLE_FEATURE_TAR_OLDSUN_COMPATIBILITY 133#if ENABLE_FEATURE_TAR_OLDSUN_COMPATIBILITY
134 sum_s += ((signed char*)&tar)[i]; 134 sum_s += ((signed char*)&tar)[i];
diff --git a/coreutils/wc.c b/coreutils/wc.c
index 04112c194..e5353b4cb 100644
--- a/coreutils/wc.c
+++ b/coreutils/wc.c
@@ -36,7 +36,7 @@
36 * (adapted from example in gnu wc.c) 36 * (adapted from example in gnu wc.c)
37 * 37 *
38 * echo hello > /tmp/testfile && 38 * echo hello > /tmp/testfile &&
39 * (dd ibs=1k skip=1 count=0 &> /dev/null ; wc -c) < /tmp/testfile 39 * (dd ibs=1k skip=1 count=0 &> /dev/null; wc -c) < /tmp/testfile
40 * 40 *
41 * for which 'wc -c' should output '0'. 41 * for which 'wc -c' should output '0'.
42 */ 42 */
diff --git a/e2fsprogs/old_e2fsprogs/chattr.c b/e2fsprogs/old_e2fsprogs/chattr.c
index 8f62a5d10..b9339387d 100644
--- a/e2fsprogs/old_e2fsprogs/chattr.c
+++ b/e2fsprogs/old_e2fsprogs/chattr.c
@@ -101,7 +101,7 @@ static int decode_arg(char *arg)
101 } else 101 } else
102 return EOF; 102 return EOF;
103 103
104 for (; *arg ; ++arg) 104 for (; *arg; ++arg)
105 (*fl) |= get_flag(*arg); 105 (*fl) |= get_flag(*arg);
106 106
107 return 1; 107 return 1;
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c
index 44ae11734..efb870076 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.c
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c
@@ -4701,7 +4701,7 @@ static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk,
4701 else { 4701 else {
4702 di = (struct dup_inode *) e2fsck_allocate_memory(ctx, 4702 di = (struct dup_inode *) e2fsck_allocate_memory(ctx,
4703 sizeof(struct dup_inode), "duplicate inode header"); 4703 sizeof(struct dup_inode), "duplicate inode header");
4704 di->dir = (ino == EXT2_ROOT_INO) ? EXT2_ROOT_INO : 0 ; 4704 di->dir = (ino == EXT2_ROOT_INO) ? EXT2_ROOT_INO : 0;
4705 di->num_dupblocks = 0; 4705 di->num_dupblocks = 0;
4706 di->block_list = 0; 4706 di->block_list = 0;
4707 di->inode = *inode; 4707 di->inode = *inode;
@@ -12490,7 +12490,7 @@ blk_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
12490 sb = (struct ext2_super_block *) buf; 12490 sb = (struct ext2_super_block *) buf;
12491 12491
12492 for (blocksize = EXT2_MIN_BLOCK_SIZE; 12492 for (blocksize = EXT2_MIN_BLOCK_SIZE;
12493 blocksize <= EXT2_MAX_BLOCK_SIZE ; blocksize *= 2) { 12493 blocksize <= EXT2_MAX_BLOCK_SIZE; blocksize *= 2) {
12494 superblock = blocksize*8; 12494 superblock = blocksize*8;
12495 if (blocksize == 1024) 12495 if (blocksize == 1024)
12496 superblock++; 12496 superblock++;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c b/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
index 7804396d7..6e5cc10b8 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
@@ -223,7 +223,7 @@ int ext2fs_u32_list_del(ext2_u32_list bb, __u32 blk)
223 if (remloc < 0) 223 if (remloc < 0)
224 return -1; 224 return -1;
225 225
226 for (i = remloc ; i < bb->num-1; i++) 226 for (i = remloc; i < bb->num - 1; i++)
227 bb->list[i] = bb->list[i+1]; 227 bb->list[i] = bb->list[i+1];
228 bb->num--; 228 bb->num--;
229 return 0; 229 return 0;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/block.c b/e2fsprogs/old_e2fsprogs/ext2fs/block.c
index 0a757b201..498096995 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/block.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/block.c
@@ -343,7 +343,7 @@ errcode_t ext2fs_block_iterate2(ext2_filsys fs,
343 /* 343 /*
344 * Iterate over normal data blocks 344 * Iterate over normal data blocks
345 */ 345 */
346 for (i = 0; i < EXT2_NDIR_BLOCKS ; i++, ctx.bcount++) { 346 for (i = 0; i < EXT2_NDIR_BLOCKS; i++, ctx.bcount++) {
347 if (blocks[i] || (flags & BLOCK_FLAG_APPEND)) { 347 if (blocks[i] || (flags & BLOCK_FLAG_APPEND)) {
348 ret |= (*ctx.func)(fs, &blocks[i], 348 ret |= (*ctx.func)(fs, &blocks[i],
349 ctx.bcount, 0, i, priv_data); 349 ctx.bcount, 0, i, priv_data);
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c b/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
index c56a21aa8..5a5ad3ef8 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
@@ -228,7 +228,7 @@ errcode_t ext2fs_file_read(ext2_file_t file, void *buf,
228 c = fs->blocksize - start; 228 c = fs->blocksize - start;
229 if (c > wanted) 229 if (c > wanted)
230 c = wanted; 230 c = wanted;
231 left = EXT2_I_SIZE(&file->inode) - file->pos ; 231 left = EXT2_I_SIZE(&file->inode) - file->pos;
232 if (c > left) 232 if (c > left)
233 c = left; 233 c = left;
234 234
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c b/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
index 716be060f..1b271196b 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
@@ -273,7 +273,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options,
273 group_block = fs->super->s_first_data_block; 273 group_block = fs->super->s_first_data_block;
274 dest = (char *) fs->group_desc; 274 dest = (char *) fs->group_desc;
275 groups_per_block = fs->blocksize / sizeof(struct ext2_group_desc); 275 groups_per_block = fs->blocksize / sizeof(struct ext2_group_desc);
276 for (i=0 ; i < fs->desc_blocks; i++) { 276 for (i = 0; i < fs->desc_blocks; i++) {
277 blk = ext2fs_descriptor_block_loc(fs, group_block, i); 277 blk = ext2fs_descriptor_block_loc(fs, group_block, i);
278 retval = io_channel_read_blk(fs->io, blk, 1, dest); 278 retval = io_channel_read_blk(fs->io, blk, 1, dest);
279 if (retval) 279 if (retval)
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index 0ad62ca04..cf398079c 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -1357,7 +1357,7 @@ int fsck_main(int argc, char **argv)
1357 interactive++; 1357 interactive++;
1358 return check_all(); 1358 return check_all();
1359 } 1359 }
1360 for (i = 0 ; i < num_devices; i++) { 1360 for (i = 0; i < num_devices; i++) {
1361 if (cancel_requested) { 1361 if (cancel_requested) {
1362 if (!kill_sent) { 1362 if (!kill_sent) {
1363 kill_all(SIGTERM); 1363 kill_all(SIGTERM);
diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c
index 9ea5d5c92..c1deefdb7 100644
--- a/e2fsprogs/old_e2fsprogs/mke2fs.c
+++ b/e2fsprogs/old_e2fsprogs/mke2fs.c
@@ -59,14 +59,14 @@ static char *creator_os;
59static char *volume_label; 59static char *volume_label;
60static char *mount_dir; 60static char *mount_dir;
61static char *journal_device = NULL; 61static char *journal_device = NULL;
62static int sync_kludge; /* Set using the MKE2FS_SYNC env. option */ 62static int sync_kludge; /* Set using the MKE2FS_SYNC env. option */
63 63
64static int sys_page_size = 4096; 64static int sys_page_size = 4096;
65static int linux_version_code = 0; 65static int linux_version_code = 0;
66 66
67static int int_log2(int arg) 67static int int_log2(int arg)
68{ 68{
69 int l = 0; 69 int l = 0;
70 70
71 arg >>= 1; 71 arg >>= 1;
72 while (arg) { 72 while (arg) {
@@ -80,7 +80,7 @@ static int int_log10(unsigned int arg)
80{ 80{
81 int l; 81 int l;
82 82
83 for (l=0; arg ; l++) 83 for (l = 0; arg; l++)
84 arg = arg / 10; 84 arg = arg / 10;
85 return l; 85 return l;
86} 86}
@@ -1226,7 +1226,7 @@ int mke2fs_main (int argc, char **argv)
1226 * don't check all the filesystems at the same time. We use a 1226 * don't check all the filesystems at the same time. We use a
1227 * kludgy hack of using the UUID to derive a random jitter value. 1227 * kludgy hack of using the UUID to derive a random jitter value.
1228 */ 1228 */
1229 for (i = 0, val = 0 ; i < sizeof(fs->super->s_uuid); i++) 1229 for (i = 0, val = 0; i < sizeof(fs->super->s_uuid); i++)
1230 val += fs->super->s_uuid[i]; 1230 val += fs->super->s_uuid[i];
1231 fs->super->s_max_mnt_count += val % EXT2_DFL_MAX_MNT_COUNT; 1231 fs->super->s_max_mnt_count += val % EXT2_DFL_MAX_MNT_COUNT;
1232 1232
diff --git a/editors/diff.c b/editors/diff.c
index ef39623ef..88f8b22db 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -328,11 +328,11 @@ static void prune(void)
328 328
329 for (pref = 0; pref < len[0] && pref < len[1] && 329 for (pref = 0; pref < len[0] && pref < len[1] &&
330 file[0][pref + 1].value == file[1][pref + 1].value; pref++) 330 file[0][pref + 1].value == file[1][pref + 1].value; pref++)
331 ; 331 continue;
332 for (suff = 0; suff < len[0] - pref && suff < len[1] - pref && 332 for (suff = 0; suff < len[0] - pref && suff < len[1] - pref &&
333 file[0][len[0] - suff].value == file[1][len[1] - suff].value; 333 file[0][len[0] - suff].value == file[1][len[1] - suff].value;
334 suff++) 334 suff++)
335 ; 335 continue;
336 for (j = 0; j < 2; j++) { 336 for (j = 0; j < 2; j++) {
337 sfile[j] = file[j] + pref; 337 sfile[j] = file[j] + pref;
338 slen[j] = len[j] - pref - suff; 338 slen[j] = len[j] - pref - suff;
diff --git a/editors/vi.c b/editors/vi.c
index 97efe0cfb..c4f3a8393 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2800,7 +2800,7 @@ static void refresh(int full_screen)
2800 format_line(buf, tp, li); 2800 format_line(buf, tp, li);
2801 2801
2802 // skip to the end of the current text[] line 2802 // skip to the end of the current text[] line
2803 while (tp < end && *tp++ != '\n') /*no-op*/ ; 2803 while (tp < end && *tp++ != '\n') /*no-op*/;
2804 2804
2805 // see if there are any changes between vitual screen and buf 2805 // see if there are any changes between vitual screen and buf
2806 changed = FALSE; // assume no change 2806 changed = FALSE; // assume no change
diff --git a/include/usage.h b/include/usage.h
index 9c77c70d8..679c3476b 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -417,7 +417,7 @@
417 " -m show min and max priorities" 417 " -m show min and max priorities"
418 418
419#define chrt_example_usage \ 419#define chrt_example_usage \
420 "$ chrt -r 4 sleep 900 ; x=$!\n" \ 420 "$ chrt -r 4 sleep 900; x=$!\n" \
421 "$ chrt -f -p 3 $x\n" \ 421 "$ chrt -f -p 3 $x\n" \
422 "You need CAP_SYS_NICE privileges to set scheduling attributes of a process" 422 "You need CAP_SYS_NICE privileges to set scheduling attributes of a process"
423 423
@@ -1105,19 +1105,19 @@
1105 "#!/bin/sh\n" \ 1105 "#!/bin/sh\n" \
1106 "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \ 1106 "GETOPT=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \\\n" \
1107 " -n 'example.busybox' -- \"$@\"`\n" \ 1107 " -n 'example.busybox' -- \"$@\"`\n" \
1108 "if [ $? != 0 ] ; then exit 1 ; fi\n" \ 1108 "if [ $? != 0 ]; then exit 1; fi\n" \
1109 "eval set -- \"$GETOPT\"\n" \ 1109 "eval set -- \"$GETOPT\"\n" \
1110 "while true ; do\n" \ 1110 "while true; do\n" \
1111 " case $1 in\n" \ 1111 " case $1 in\n" \
1112 " -a|--a-long) echo \"Option a\" ; shift ;;\n" \ 1112 " -a|--a-long) echo \"Option a\"; shift;;\n" \
1113 " -b|--b-long) echo \"Option b, argument '$2'\" ; shift 2 ;;\n" \ 1113 " -b|--b-long) echo \"Option b, argument '$2'\"; shift 2;;\n" \
1114 " -c|--c-long)\n" \ 1114 " -c|--c-long)\n" \
1115 " case \"$2\" in\n" \ 1115 " case \"$2\" in\n" \
1116 " \"\") echo \"Option c, no argument\"; shift 2 ;;\n" \ 1116 " \"\") echo \"Option c, no argument\"; shift 2;;\n" \
1117 " *) echo \"Option c, argument '$2'\" ; shift 2 ;;\n" \ 1117 " *) echo \"Option c, argument '$2'\"; shift 2;;\n" \
1118 " esac ;;\n" \ 1118 " esac;;\n" \
1119 " --) shift ; break ;;\n" \ 1119 " --) shift; break;;\n" \
1120 " *) echo \"Internal error!\" ; exit 1 ;;\n" \ 1120 " *) echo \"Internal error!\"; exit 1;;\n" \
1121 " esac\n" \ 1121 " esac\n" \
1122 "done\n" 1122 "done\n"
1123 1123
@@ -2867,10 +2867,10 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
2867 "$ run-parts -a stop=now /etc/init.d\n\n" \ 2867 "$ run-parts -a stop=now /etc/init.d\n\n" \
2868 "Let's assume you have a script foo/dosomething:\n" \ 2868 "Let's assume you have a script foo/dosomething:\n" \
2869 "#!/bin/sh\n" \ 2869 "#!/bin/sh\n" \
2870 "for i in $*; do eval $i; done ; unset i\n" \ 2870 "for i in $*; do eval $i; done; unset i\n" \
2871 "case \"$1\" in\n" \ 2871 "case \"$1\" in\n" \
2872 "start*) echo starting something ;;\n" \ 2872 "start*) echo starting something;;\n" \
2873 "stop*) set -x ; shutdown -h $stop ;;\n" \ 2873 "stop*) set -x; shutdown -h $stop;;\n" \
2874 "esac\n\n" \ 2874 "esac\n\n" \
2875 "Running this yields:\n" \ 2875 "Running this yields:\n" \
2876 "$run-parts -a stop=+4m foo/\n" \ 2876 "$run-parts -a stop=+4m foo/\n" \
diff --git a/include/xatonum.h b/include/xatonum.h
index e613fce6b..387545518 100644
--- a/include/xatonum.h
+++ b/include/xatonum.h
@@ -18,7 +18,7 @@ unsigned type xato##UT##_range_sfx(const char *str, unsigned type l, unsigned ty
18unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u); \ 18unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u); \
19unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx); \ 19unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx); \
20unsigned type xato##UT(const char *str); \ 20unsigned type xato##UT(const char *str); \
21type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) ;\ 21type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx); \
22type xstrto##T##_range(const char *str, int b, type l, type u); \ 22type xstrto##T##_range(const char *str, int b, type l, type u); \
23type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx); \ 23type xato##T##_range_sfx(const char *str, type l, type u, const struct suffix_mult *sfx); \
24type xato##T##_range(const char *str, type l, type u); \ 24type xato##T##_range(const char *str, type l, type u); \
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 7714abecb..09fa82c09 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -75,7 +75,7 @@ const char *make_human_readable_str(unsigned long long size,
75 if (frac >= 5) { 75 if (frac >= 5) {
76 ++val; 76 ++val;
77 } 77 }
78 f = "%llu%*c" /* fmt_no_tenths */ ; 78 f = "%llu%*c" /* fmt_no_tenths */;
79 frac = 1; 79 frac = 1;
80 } 80 }
81#endif 81#endif
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 0f0b33d3b..94a296238 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -94,7 +94,7 @@ int main(void)
94 unsigned long v; 94 unsigned long v;
95 speed_t s; 95 speed_t s;
96 96
97 for (v = 0 ; v < 500000 ; v++) { 97 for (v = 0 ; v < 500000; v++) {
98 s = tty_value_to_baud(v); 98 s = tty_value_to_baud(v);
99 if (s == (speed_t) -1) { 99 if (s == (speed_t) -1) {
100 continue; 100 continue;
@@ -104,7 +104,7 @@ int main(void)
104 104
105 printf("-------------------------------\n"); 105 printf("-------------------------------\n");
106 106
107 for (s = 0 ; s < 010017+1 ; s++) { 107 for (s = 0 ; s < 010017+1; s++) {
108 v = tty_baud_to_value(s); 108 v = tty_baud_to_value(s);
109 if (!v) { 109 if (!v) {
110 continue; 110 continue;
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index 4e476f26d..b535ef5c4 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -642,7 +642,7 @@ int initgroups(const char *user, gid_t gid)
642 while (!bb__pgsreader(bb__parsegrent, &group, buff, sizeof(buff), grfile)) { 642 while (!bb__pgsreader(bb__parsegrent, &group, buff, sizeof(buff), grfile)) {
643 assert(group.gr_mem); /* Must have at least a NULL terminator. */ 643 assert(group.gr_mem); /* Must have at least a NULL terminator. */
644 if (group.gr_gid != gid) { 644 if (group.gr_gid != gid) {
645 for (m=group.gr_mem ; *m ; m++) { 645 for (m = group.gr_mem; *m; m++) {
646 if (!strcmp(*m, user)) { 646 if (!strcmp(*m, user)) {
647 if (!(num_groups & 7)) { 647 if (!(num_groups & 7)) {
648 gid_t *tmp = (gid_t *) 648 gid_t *tmp = (gid_t *)
@@ -759,7 +759,7 @@ int putspent(const struct spwd *p, FILE *stream)
759 goto DO_UNLOCK; 759 goto DO_UNLOCK;
760 } 760 }
761 761
762 for (i=0 ; i < sizeof(_sp_off) ; i++) { 762 for (i = 0; i < sizeof(_sp_off); i++) {
763 f = ld_format; 763 f = ld_format;
764 x = *(const long *)(((const char *) p) + _sp_off[i]); 764 x = *(const long *)(((const char *) p) + _sp_off[i]);
765 if (x == -1) { 765 if (x == -1) {
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index d8730459b..6db0c7b05 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -1600,7 +1600,7 @@ int st_expr_expand(char *output, unsigned int length, const char *input,
1600 } 1600 }
1601 /* Someone else's home directory */ 1601 /* Someone else's home directory */
1602 for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr) 1602 for (ptr = ++input; !isspace(ch) && (ch != '/') && (ch != '\0'); ch = *++ptr)
1603 /* VOID */ ; 1603 /* VOID */;
1604 len = ptr - input; 1604 len = ptr - input;
1605 if (len >= sizeof tmp) 1605 if (len >= sizeof tmp)
1606 goto st_expr_expand_out; 1606 goto st_expr_expand_out;
@@ -1679,7 +1679,7 @@ static const char *expand_variable(char *buffer, unsigned int length,
1679 if (ch != '{') { 1679 if (ch != '{') {
1680 /* Simple variable expansion */ 1680 /* Simple variable expansion */
1681 for (ptr = input; isalnum(ch) || (ch == '_') || (ch == ':'); ch = *++ptr) 1681 for (ptr = input; isalnum(ch) || (ch == '_') || (ch == ':'); ch = *++ptr)
1682 /* VOID */ ; 1682 /* VOID */;
1683 len = ptr - input; 1683 len = ptr - input;
1684 if ((size_t)len >= sizeof tmp) 1684 if ((size_t)len >= sizeof tmp)
1685 goto expand_variable_out; 1685 goto expand_variable_out;
diff --git a/networking/interface.c b/networking/interface.c
index 79f79c987..92d7f5dc0 100644
--- a/networking/interface.c
+++ b/networking/interface.c
@@ -803,7 +803,7 @@ static const struct hwtype sit_hwtype = {
803 .type = ARPHRD_SIT, 803 .type = ARPHRD_SIT,
804 .print = UNSPEC_print, 804 .print = UNSPEC_print,
805 .suppress_null_addr = 1 805 .suppress_null_addr = 1
806} ; 806};
807#endif 807#endif
808 808
809static const struct hwtype *const hwtypes[] = { 809static const struct hwtype *const hwtypes[] = {
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c
index a6ab39924..2d597ea3a 100644
--- a/networking/libiproute/ip_parse_common_args.c
+++ b/networking/libiproute/ip_parse_common_args.c
@@ -82,7 +82,7 @@ void ip_parse_common_args(int *argcp, char ***argvp)
82 argc--; 82 argc--;
83 argv++; 83 argv++;
84 } 84 }
85 _SL_ = oneline ? '\\' : '\n' ; 85 _SL_ = oneline ? '\\' : '\n';
86 *argcp = argc; 86 *argcp = argc;
87 *argvp = argv; 87 *argvp = argv;
88} 88}
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index fc10ba37c..955a9d933 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -46,7 +46,7 @@ static void print_link_flags(FILE *fp, unsigned flags, unsigned mdown)
46 fprintf(fp, "<"); 46 fprintf(fp, "<");
47 flags &= ~IFF_RUNNING; 47 flags &= ~IFF_RUNNING;
48#define _PF(f) if (flags&IFF_##f) { \ 48#define _PF(f) if (flags&IFF_##f) { \
49 flags &= ~IFF_##f ; \ 49 flags &= ~IFF_##f; \
50 fprintf(fp, #f "%s", flags ? "," : ""); } 50 fprintf(fp, #f "%s", flags ? "," : ""); }
51 _PF(LOOPBACK); 51 _PF(LOOPBACK);
52 _PF(BROADCAST); 52 _PF(BROADCAST);
diff --git a/shell/ash.c b/shell/ash.c
index 32c440274..5f4d1767e 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -11268,7 +11268,7 @@ helpcmd(int argc, char **argv)
11268 int col, i; 11268 int col, i;
11269 11269
11270 out1fmt("\nBuilt-in commands:\n-------------------\n"); 11270 out1fmt("\nBuilt-in commands:\n-------------------\n");
11271 for (col = 0, i = 0; i < ARRAY_SIZE(builtintab) ; i++) { 11271 for (col = 0, i = 0; i < ARRAY_SIZE(builtintab); i++) {
11272 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '), 11272 col += out1fmt("%c%s", ((col == 0) ? '\t' : ' '),
11273 builtintab[i].name + 1); 11273 builtintab[i].name + 1);
11274 if (col > 60) { 11274 if (col > 60) {
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 3b9892fa8..0a8dbe94c 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -1823,7 +1823,7 @@ wrong_p_order(int *prev)
1823 ullong last_p_start_pos = 0, p_start_pos; 1823 ullong last_p_start_pos = 0, p_start_pos;
1824 int i, last_i = 0; 1824 int i, last_i = 0;
1825 1825
1826 for (i = 0 ; i < partitions; i++) { 1826 for (i = 0; i < partitions; i++) {
1827 if (i == 4) { 1827 if (i == 4) {
1828 last_i = 4; 1828 last_i = 4;
1829 last_p_start_pos = 0; 1829 last_p_start_pos = 0;
@@ -2041,7 +2041,7 @@ x_list_table(int extend)
2041 printf("\nDisk %s: %d heads, %d sectors, %d cylinders\n\n", 2041 printf("\nDisk %s: %d heads, %d sectors, %d cylinders\n\n",
2042 disk_device, heads, sectors, cylinders); 2042 disk_device, heads, sectors, cylinders);
2043 printf("Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID\n"); 2043 printf("Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID\n");
2044 for (i = 0 ; i < partitions; i++) { 2044 for (i = 0; i < partitions; i++) {
2045 pe = &ptes[i]; 2045 pe = &ptes[i];
2046 p = (extend ? pe->ext_pointer : pe->part_table); 2046 p = (extend ? pe->ext_pointer : pe->part_table);
2047 if (p != NULL) { 2047 if (p != NULL) {
diff --git a/util-linux/fdisk_sgi.c b/util-linux/fdisk_sgi.c
index b7e09f3c2..25e75b06c 100644
--- a/util-linux/fdisk_sgi.c
+++ b/util-linux/fdisk_sgi.c
@@ -142,7 +142,7 @@ static void
142add2freelist(unsigned int f, unsigned int l) 142add2freelist(unsigned int f, unsigned int l)
143{ 143{
144 int i; 144 int i;
145 for (i = 0; i < 17 ; i++) 145 for (i = 0; i < 17; i++)
146 if (freelist[i].last == 0) 146 if (freelist[i].last == 0)
147 break; 147 break;
148 setfreelist(i, f, l); 148 setfreelist(i, f, l);
@@ -153,7 +153,7 @@ clearfreelist(void)
153{ 153{
154 int i; 154 int i;
155 155
156 for (i = 0; i < 17 ; i++) 156 for (i = 0; i < 17; i++)
157 setfreelist(i, 0, 0); 157 setfreelist(i, 0, 0);
158} 158}
159 159
@@ -162,7 +162,7 @@ isinfreelist(unsigned int b)
162{ 162{
163 int i; 163 int i;
164 164
165 for (i = 0; i < 17 ; i++) 165 for (i = 0; i < 17; i++)
166 if (freelist[i].first <= b && freelist[i].last >= b) 166 if (freelist[i].first <= b && freelist[i].last >= b)
167 return freelist[i].last; 167 return freelist[i].last;
168 return 0; 168 return 0;
@@ -317,7 +317,7 @@ sgi_list_table(int xtra)
317 printf("----- partitions -----\n" 317 printf("----- partitions -----\n"
318 "Pt# %*s Info Start End Sectors Id System\n", 318 "Pt# %*s Info Start End Sectors Id System\n",
319 w + 2, "Device"); 319 w + 2, "Device");
320 for (i = 0 ; i < partitions; i++) { 320 for (i = 0; i < partitions; i++) {
321 if (sgi_get_num_sectors(i) || debug ) { 321 if (sgi_get_num_sectors(i) || debug ) {
322 uint32_t start = sgi_get_start_sector(i); 322 uint32_t start = sgi_get_start_sector(i);
323 uint32_t len = sgi_get_num_sectors(i); 323 uint32_t len = sgi_get_num_sectors(i);
@@ -338,7 +338,7 @@ sgi_list_table(int xtra)
338 printf("----- Bootinfo -----\nBootfile: %s\n" 338 printf("----- Bootinfo -----\nBootfile: %s\n"
339 "----- Directory Entries -----\n", 339 "----- Directory Entries -----\n",
340 sgilabel->boot_file); 340 sgilabel->boot_file);
341 for (i = 0 ; i < sgi_volumes; i++) { 341 for (i = 0; i < sgi_volumes; i++) {
342 if (sgilabel->directory[i].vol_file_size) { 342 if (sgilabel->directory[i].vol_file_size) {
343 uint32_t start = SGI_SSWAP32(sgilabel->directory[i].vol_file_start); 343 uint32_t start = SGI_SSWAP32(sgilabel->directory[i].vol_file_start);
344 uint32_t len = SGI_SSWAP32(sgilabel->directory[i].vol_file_size); 344 uint32_t len = SGI_SSWAP32(sgilabel->directory[i].vol_file_size);
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index d4614fd4f..274b10345 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -647,7 +647,7 @@ sun_list_table(int xtra)
647 647
648 printf("%*s Flag Start End Blocks Id System\n", 648 printf("%*s Flag Start End Blocks Id System\n",
649 w + 1, "Device"); 649 w + 1, "Device");
650 for (i = 0 ; i < partitions; i++) { 650 for (i = 0; i < partitions; i++) {
651 if (sunlabel->partitions[i].num_sectors) { 651 if (sunlabel->partitions[i].num_sectors) {
652 uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * heads * sectors; 652 uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * heads * sectors;
653 uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors); 653 uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors);