Skip to content

Commit 7a09f5f

Browse files
committed
Merge branch 'js/parseopt-unknown-cb-returns-an-enum'
Code clean-up. * js/parseopt-unknown-cb-returns-an-enum: parse-options: adjust `parse_opt_unknown_cb()`s declared return type
2 parents ed8a451 + 567fce1 commit 7a09f5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parse-options.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ int parse_opt_commit(const struct option *, const char *, int);
292292
int parse_opt_tertiary(const struct option *, const char *, int);
293293
int parse_opt_string_list(const struct option *, const char *, int);
294294
int parse_opt_noop_cb(const struct option *, const char *, int);
295-
int parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx, const struct option *, const char *, int);
295+
enum parse_opt_result parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx,
296+
const struct option *,
297+
const char *, int);
296298
int parse_opt_passthru(const struct option *, const char *, int);
297299
int parse_opt_passthru_argv(const struct option *, const char *, int);
298300

0 commit comments

Comments
 (0)