summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-22 19:09:06 +0000
committerMiles Bader <miles@gnu.org>1995-05-22 19:09:06 +0000
commit12c0b2647633807e44447f754e1e9bddf277fa4b (patch)
tree6d43cdc114a34e6b5c337e5b4030d9822e3136b7 /libdiskfs
parentef9a23231951f40c290c8ed08a8d942427e3c5da (diff)
(diskfs_set_options): Don't fall through to the error case from the 's' one!
Use ARG instead of the global OPTARG.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/opts-set.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/opts-set.c b/libdiskfs/opts-set.c
index 77929e7e..9de9a3bb 100644
--- a/libdiskfs/opts-set.c
+++ b/libdiskfs/opts-set.c
@@ -49,10 +49,11 @@ diskfs_set_options (int argc, char **argv)
case 'n':
sync_interval = 0; sync = 0; break;
case 's':
- if (optarg)
+ if (arg)
sync_interval = atoi (arg);
else
sync = 1;
+ break;
default:
return EINVAL;
}