]> git.sesse.net Git - bcachefs-tools-debian/commitdiff
Fix target options
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 13 Jan 2019 19:15:01 +0000 (14:15 -0500)
committerKent Overstreet <kent.overstreet@gmail.com>
Sun, 13 Jan 2019 19:15:01 +0000 (14:15 -0500)
cmd_format.c
libbcachefs.h

index 26f6b08c5c1807535627e0966c3568e7bb817766..bf17558103ee7433c0fa16430627c59ffb8410cb 100644 (file)
@@ -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;
                }
 
index b8da35d16c1125ce96d2626845a031cede396f44..d6b8548d65f4b33c29698ab6b9182883e26ace1c 100644 (file)
 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);