summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'git.c')
-rw-r--r--git.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/git.c b/git.c
index 7124a4d..be54aa9 100644
--- a/git.c
+++ b/git.c
@@ -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;
}
}