summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-02-02 20:09:02 +0000
committerJim Meyering <jim@meyering.net>1997-02-02 20:09:02 +0000
commit50d2bb5b7b8ce635e79154975eec7cda31b38928 (patch)
tree9613d64fd4622ef57c0d0492815ae3df2fe652b0 /src
parent1a375e421b5f587bad67b0ae409a6de07b1af9b8 (diff)
downloadcoreutils-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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/df.c b/src/df.c
index 37a5b57e9..7c32db87d 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;