diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-02 20:09:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-02 20:09:02 +0000 |
commit | 50d2bb5b7b8ce635e79154975eec7cda31b38928 (patch) | |
tree | 9613d64fd4622ef57c0d0492815ae3df2fe652b0 /src | |
parent | 1a375e421b5f587bad67b0ae409a6de07b1af9b8 (diff) | |
download | coreutils-50d2bb5b7b8ce635e79154975eec7cda31b38928.tar.xz |
(main): Rename local I to C to avoid shadowing and to
be more consistent. Declare I in inner scopes.
Diffstat (limited to 'src')
-rw-r--r-- | src/df.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -581,7 +581,7 @@ or all filesystems by default.\n\ int main (int argc, char **argv) { - int i; + int c; struct stat *stats; program_name = argv[0]; @@ -610,10 +610,10 @@ main (int argc, char **argv) posix_format = 0; exit_status = 0; - while ((i = getopt_long (argc, argv, "aiF:hkmPTt:vx:", long_options, NULL)) + while ((c = getopt_long (argc, argv, "aiF:hkmPTt:vx:", long_options, NULL)) != -1) { - switch (i) + switch (c) { case 0: /* Long option. */ break; @@ -718,6 +718,8 @@ with the portable output format")); } else { + int i; + /* stat all the given entries to make sure they get automounted, if necessary, before reading the filesystem table. */ stats = (struct stat *) @@ -749,6 +751,8 @@ with the portable output format")); } else { + int i; + /* Display explicitly requested empty filesystems. */ show_listed_fs = 1; |