diff options
author | Miles Bader <miles@gnu.org> | 1997-07-14 22:51:51 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-07-14 22:51:51 +0000 |
commit | 8e8beac9c239c822435c86b7ca3f8d126264df21 (patch) | |
tree | ce520faeda6909daabfc2d64b0c869a579495196 /libdiskfs/opts-std-runtime.c | |
parent | d8b6843aca3286d966d414dcaca7f3673f415970 (diff) |
(parse_opt):
Turn off synchronous mode when setting a sync interval.
Diffstat (limited to 'libdiskfs/opts-std-runtime.c')
-rw-r--r-- | libdiskfs/opts-std-runtime.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/opts-std-runtime.c b/libdiskfs/opts-std-runtime.c index 47cebeb7..41df2111 100644 --- a/libdiskfs/opts-std-runtime.c +++ b/libdiskfs/opts-std-runtime.c @@ -1,6 +1,6 @@ /* Parse standard run-time options - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -89,7 +89,10 @@ parse_opt (int opt, char *arg, struct argp_state *state) case 'n': h->sync_interval = 0; h->sync = 0; break; case 's': if (arg) - h->sync_interval = atoi (arg); + { + h->sync = 0; + h->sync_interval = atoi (arg); + } else h->sync = 1; break; |