diff options
Diffstat (limited to 'src/fstabinfo.c')
-rw-r--r-- | src/fstabinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fstabinfo.c b/src/fstabinfo.c index 7ab5b599..15334760 100644 --- a/src/fstabinfo.c +++ b/src/fstabinfo.c @@ -78,15 +78,15 @@ int main (int argc, char **argv) int result = EXIT_FAILURE; char *token; int n = 0; - char c; + int opt; - while ((c = getopt_long (argc, argv, getoptstring, - longopts, (int *) 0)) != -1) + while ((opt = getopt_long (argc, argv, getoptstring, + longopts, (int *) 0)) != -1) { #ifdef HAVE_GETMNTENT fp = setmntent ("/etc/fstab", "r"); #endif - switch (c) { + switch (opt) { case 'f': while ((token = strsep (&optarg, ","))) while ((ent = GET_ENT)) |