diff options
Diffstat (limited to 'cmd_debug.c')
-rw-r--r-- | cmd_debug.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd_debug.c b/cmd_debug.c index d4613ec..7ee4e1f 100644 --- a/cmd_debug.c +++ b/cmd_debug.c @@ -88,10 +88,10 @@ int cmd_dump(int argc, char *argv[]) bool force = false; int fd, opt; - opts.nochanges = true; - opts.noreplay = true; - opts.errors = BCH_ON_ERROR_CONTINUE; - opts.degraded = true; + opt_set(opts, nochanges, true); + opt_set(opts, noreplay, true); + opt_set(opts, degraded, true); + opt_set(opts, errors, BCH_ON_ERROR_CONTINUE); while ((opt = getopt(argc, argv, "o:fh")) != -1) switch (opt) { @@ -265,10 +265,10 @@ int cmd_list(int argc, char *argv[]) u64 inum; int mode = 0, opt; - opts.nochanges = true; - opts.norecovery = true; - opts.errors = BCH_ON_ERROR_CONTINUE; - opts.degraded = true; + opt_set(opts, nochanges, true); + opt_set(opts, norecovery, true); + opt_set(opts, degraded, true); + opt_set(opts, errors, BCH_ON_ERROR_CONTINUE); while ((opt = getopt(argc, argv, "b:s:e:i:m:fvh")) != -1) switch (opt) { |