From: Jim Meyering Date: Sun, 2 Feb 1997 20:09:02 +0000 (+0000) Subject: (main): Rename local I to C to avoid shadowing and to X-Git-Tag: SH-UTILS-1_16a~285 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=50d2bb5b7b8ce635e79154975eec7cda31b38928;p=thirdparty%2Fcoreutils.git (main): Rename local I to C to avoid shadowing and to be more consistent. Declare I in inner scopes. --- diff --git a/src/df.c b/src/df.c index 37a5b57e9f..7c32db87d6 100644 --- a/src/df.c +++ b/src/df.c @@ -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;