diff options
author | Eric Andersen | 2001-03-21 07:34:27 +0000 |
---|---|---|
committer | Eric Andersen | 2001-03-21 07:34:27 +0000 |
commit | 1ca20a77476fb69e2472080ef6ba23c8c0ad12ad (patch) | |
tree | d1f07be4de0004fe5e30b44320e10285147e7944 /fsck_minix.c | |
parent | 7447642a47c6a0aefd05f4acf730950a510634cd (diff) | |
download | busybox-1ca20a77476fb69e2472080ef6ba23c8c0ad12ad.zip busybox-1ca20a77476fb69e2472080ef6ba23c8c0ad12ad.tar.gz |
A nice patch from Larry Doolittle that adds -Wshadow and
cleans up most of the now-revealed problems.
Diffstat (limited to 'fsck_minix.c')
-rw-r--r-- | fsck_minix.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fsck_minix.c b/fsck_minix.c index bd0c8a6..a2421fc 100644 --- a/fsck_minix.c +++ b/fsck_minix.c @@ -1439,18 +1439,18 @@ extern int fsck_minix_main(int argc, char **argv) check(); } if (verbose) { - int i, free; + int i, free_cnt; - for (i = 1, free = 0; i <= INODES; i++) + for (i = 1, free_cnt = 0; i <= INODES; i++) if (!inode_in_use(i)) - free++; - printf("\n%6ld inodes used (%ld%%)\n", (INODES - free), - 100 * (INODES - free) / INODES); - for (i = FIRSTZONE, free = 0; i < ZONES; i++) + free_cnt++; + printf("\n%6ld inodes used (%ld%%)\n", (INODES - free_cnt), + 100 * (INODES - free_cnt) / INODES); + for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) if (!zone_in_use(i)) - free++; - printf("%6ld zones used (%ld%%)\n", (ZONES - free), - 100 * (ZONES - free) / ZONES); + free_cnt++; + printf("%6ld zones used (%ld%%)\n", (ZONES - free_cnt), + 100 * (ZONES - free_cnt) / ZONES); printf("\n%6d regular files\n" "%6d directories\n" "%6d character device files\n" |