diff options
-rw-r--r-- | cmd_format.c | 2 | ||||
-rw-r--r-- | libbcachefs.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd_format.c b/cmd_format.c index 26f6b08c..bf175581 100644 --- a/cmd_format.c +++ b/cmd_format.c @@ -196,7 +196,7 @@ int cmd_format(int argc, char *argv[]) exit(EXIT_SUCCESS); break; case '?': - die("unrecognized option %s", optarg); + exit(EXIT_FAILURE); break; } diff --git a/libbcachefs.h b/libbcachefs.h index b8da35d1..d6b8548d 100644 --- a/libbcachefs.h +++ b/libbcachefs.h @@ -15,13 +15,13 @@ struct bch_opt_strs { union { char *by_id[bch2_opts_nr]; -}; struct { #define x(_name, ...) char *_name; BCH_OPTS() #undef x }; }; +}; struct bch_opt_strs bch2_cmdline_opts_get(int *, char *[], unsigned); struct bch_opts bch2_parse_opts(struct bch_opt_strs); |