parse-options: avoid magic return codes
[gitweb.git] / builtin / merge.c
index 07839b0bb8f922e5bab1757c8739b2c20082a874..de64d7850e99ef5ab7435cecf545b2872e7c77f1 100644 (file)
@@ -112,8 +112,9 @@ static int option_parse_message(const struct option *opt,
        return 0;
 }
 
-static int option_read_message(struct parse_opt_ctx_t *ctx,
-                              const struct option *opt, int unset)
+static enum parse_opt_result option_read_message(struct parse_opt_ctx_t *ctx,
+                                                const struct option *opt,
+                                                int unset)
 {
        struct strbuf *buf = opt->value;
        const char *arg;