diff options
author | Roy Marples <roy@marples.name> | 2007-05-14 12:24:18 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-05-14 12:24:18 +0000 |
commit | 0942916b729e375df32dae5874c74aaf4f5743a1 (patch) | |
tree | e02e63aa20ad55047eae69ce2ab63e6f43894a00 /src/mountinfo.c | |
parent | 86c7d44d66a64d923294cf5d830b8fd3bf0e3db1 (diff) |
Allow time for pidfiles to be created, #178274.
Use int instead of char for getopt, #178084 thanks to drizztbsd.
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r-- | src/mountinfo.c | 8 |
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); |