[PATCH 0/2] parse-options.[ch]: enum fixup & enum nit
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Nov 9, 2021, 11:04 UTC
- Message-ID
- <cover-0.2-00000000000-20211109T110113Z-avarab@gmail.com>
- In-Reply-To
- <211106.86lf21ezqx.gmgdl@evledraar.gmail.com>
This tiny series fixes an issue new in v2.34.0-rc* where a recent patch of mine incorrectly changed a return type to an enum that wasn't applicable to that function. That fix is in 1/2. Thanks to SZEDER for spotting it!
Junio: As noted in [1] I don't think this needs to be integrated before the release, but if you wanted to pick it up anyway I think it's safe. Maybe someone's compiler will complain about the pre-image.
2/2 then marks a static function I missed with an enum, which it was already always returning except in an error case.
1. https://lore.kernel.org/git/211106.86lf21ezqx.gmgdl@evledraar.gmail.com/
Ævar Arnfjörð Bjarmason (2): parse-options.[ch]: revert use of "enum" for parse_options() parse-options.c: use "enum parse_opt_result" for parse_nodash_opt()
parse-options.c | 17 +++++++++-------- parse-options.h | 9 ++++----- 2 files changed, 13 insertions(+), 13 deletions(-)
-- 2.34.0.rc1.741.gab7bfd97031