Skip to content

Commit 84c99b2

Browse files
committed
Merge branch 'ab/parse-options-cleanup'
Last minute fix to the update already in 'master'. * ab/parse-options-cleanup: parse-options.[ch]: revert use of "enum" for parse_options()
2 parents 92dd0a5 + 06a199f commit 84c99b2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

parse-options.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -860,11 +860,11 @@ int parse_options_end(struct parse_opt_ctx_t *ctx)
860860
return ctx->cpidx + ctx->argc;
861861
}
862862

863-
enum parse_opt_result parse_options(int argc, const char **argv,
864-
const char *prefix,
865-
const struct option *options,
866-
const char * const usagestr[],
867-
enum parse_opt_flags flags)
863+
int parse_options(int argc, const char **argv,
864+
const char *prefix,
865+
const struct option *options,
866+
const char * const usagestr[],
867+
enum parse_opt_flags flags)
868868
{
869869
struct parse_opt_ctx_t ctx;
870870
struct option *real_options;

parse-options.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,10 @@ struct option {
213213
* untouched and parse_options() returns the number of options
214214
* processed.
215215
*/
216-
enum parse_opt_result parse_options(int argc, const char **argv,
217-
const char *prefix,
218-
const struct option *options,
219-
const char * const usagestr[],
220-
enum parse_opt_flags flags);
216+
int parse_options(int argc, const char **argv, const char *prefix,
217+
const struct option *options,
218+
const char * const usagestr[],
219+
enum parse_opt_flags flags);
221220

222221
NORETURN void usage_with_options(const char * const *usagestr,
223222
const struct option *options);

0 commit comments

Comments
 (0)