Skip to content

Commit 0320e6b

Browse files
committed
parse-options: fix declaration of parse_opt_unknown_cb()
In f41179f (parse-options: avoid magic return codes, 2019-01-27), this function's signature was changed to return an `enum` instead of a non-descriptive `int`. Which is a good change. However, it forgot to adjust the declaration. Which we now fix. This was noticed by the MSVC compiler. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2dbb69f commit 0320e6b

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
@@ -287,7 +287,9 @@ int parse_opt_commit(const struct option *, const char *, int);
287287
int parse_opt_tertiary(const struct option *, const char *, int);
288288
int parse_opt_string_list(const struct option *, const char *, int);
289289
int parse_opt_noop_cb(const struct option *, const char *, int);
290-
int parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx, const struct option *, const char *, int);
290+
enum parse_opt_result parse_opt_unknown_cb(struct parse_opt_ctx_t *ctx,
291+
const struct option *opt,
292+
const char *arg, int unset);
291293
int parse_opt_passthru(const struct option *, const char *, int);
292294
int parse_opt_passthru_argv(const struct option *, const char *, int);
293295

0 commit comments

Comments
 (0)