aboutsummaryrefslogtreecommitdiff
path: root/src/mountinfo.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-12 10:40:51 +0000
committerRoy Marples <roy@marples.name>2007-04-12 10:40:51 +0000
commit000f2395349552a9c1a08f634f1c5d1ed5417b1f (patch)
treef3a01f4c298f47ef716b4b36724d184c30635842 /src/mountinfo.c
parent2728cef0e1b7f91fe1f23b3f85a50820743b75f2 (diff)
Fix getopt a little
Diffstat (limited to 'src/mountinfo.c')
-rw-r--r--src/mountinfo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mountinfo.c b/src/mountinfo.c
index 50e0716d..b7cc1b14 100644
--- a/src/mountinfo.c
+++ b/src/mountinfo.c
@@ -36,7 +36,6 @@ static char **find_mounts (regex_t *node_regex, regex_t *fstype_regex,
int nmnts;
int i;
char **list = NULL;
- char c;
if ((nmnts = getmntinfo (&mnts, MNT_NOWAIT)) == 0)
eerrorx ("getmntinfo: %s", strerror (errno));
@@ -155,7 +154,7 @@ int main (int argc, char **argv)
{ NULL, 0, NULL, 0}
};
- while ((c = getopt_long (argc, argv, "F:N:S;fnr",
+ while ((c = getopt_long (argc, argv, "F:N:S:fnr",
longopts, (int *) 0)) != -1)
switch (c) {
case 'F':
@@ -182,7 +181,7 @@ int main (int argc, char **argv)
}
break;
- case 'R':
+ case 'S':
if (skip_regex)
free (skip_regex);
skip_regex = rc_xmalloc (sizeof (regex_t));