aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index 4699fcd5..b56282f4 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -157,11 +157,11 @@ int main (int argc, char **argv)
bool list_fstype = false;
bool reverse = false;
char **mounts = NULL;
- char c;
+ int opt;
- while ((c = getopt_long (argc, argv, getoptstring,
- longopts, (int *) 0)) != -1)
- switch (c) {
+ while ((opt = getopt_long (argc, argv, getoptstring,
+ longopts, (int *) 0)) != -1)
+ switch (opt) {
case 'F':
if (fstype_regex)
free (fstype_regex);