]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Rename local I to C to avoid shadowing and to
authorJim Meyering <jim@meyering.net>
Sun, 2 Feb 1997 20:09:02 +0000 (20:09 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 2 Feb 1997 20:09:02 +0000 (20:09 +0000)
be more consistent.  Declare I in inner scopes.

src/df.c

index 37a5b57e9f7047eb8ea8eef305bf45a66b719f6e..7c32db87d6374ad7828cda93da8bef306039f94e 100644 (file)
--- 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;