diff options
author | Miles Bader <miles@gnu.org> | 1995-05-22 19:09:06 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-22 19:09:06 +0000 |
commit | 12c0b2647633807e44447f754e1e9bddf277fa4b (patch) | |
tree | 6d43cdc114a34e6b5c337e5b4030d9822e3136b7 /libdiskfs | |
parent | ef9a23231951f40c290c8ed08a8d942427e3c5da (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.c | 3 |
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; } |