parse-options.[ch]: revert use of "enum" for parse_options()
commit06a199f38b50ccea198c29216c69bb389ca23391
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 9 Nov 2021 11:04:43 +0000 (9 12:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 9 Nov 2021 17:45:37 +0000 (9 09:45 -0800)
tree71d2f61783d8246960f6ca6ffeba8b4f1e322f28
parentd342834529495508fa1f23e223d4917cbdcfb54d
parse-options.[ch]: revert use of "enum" for parse_options()

Revert the parse_options() prototype change in my recent
352e761388b (parse-options.[ch]: consistently use "enum
parse_opt_result", 2021-10-08) was incorrect. The parse_options()
function returns the number of argc elements that haven't been
processed, not "enum parse_opt_result".

Reported-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c
parse-options.h