diff options
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -89,7 +89,7 @@ static linked_list *parse_dsv_str(const char *str, const char *delm) { return tail; } -static void parse_patch_list(void *ctx, void *ret, const keyword *key, keyword_val val) { +static int parse_patch_list(void *ctx, void *ret, const keyword *key, keyword_val val) { /* Do we actually have a "patches" keyword? */ if (key->type == TYPE_STRING) { const char *root = (const char *)ctx; @@ -113,11 +113,13 @@ static void parse_patch_list(void *ctx, void *ret, const keyword *key, keyword_v } cleanup_linked_list(patch_list); + return 1; } } + return -1; } -static void parse_comment_reply(void *ctx, void *ret, const keyword *key, keyword_val val) { +static int parse_comment_reply(void *ctx, void *ret, const keyword *key, keyword_val val) { linked_list *comment_list = *(linked_list **)ctx; comment *comment = (comment *)ret; @@ -129,7 +131,7 @@ static void parse_comment_reply(void *ctx, void *ret, const keyword *key, keywor /* Do we have a match? */ if (comment->reply == reply) { - return; + return 1; } } } @@ -158,7 +160,7 @@ static void parse_comment_reply(void *ctx, void *ret, const keyword *key, keywor /* Did we find a reply in the list? */ if (found_reply) { - return; + return 1; } } |