[Patch v8 01/18] parse_tag_line: use enum for return value.
Jani Nikula
jani at nikula.org
Sat Dec 22 13:48:04 PST 2012
On Fri, 21 Dec 2012, david at tethera.net wrote:
> From: David Bremner <bremner at debian.org>
>
> This is essentially cosmetic, since success=0 is promised by
> the comments in tag-utils.h.
Squash this on top for completeness:
diff --git a/tag-util.c b/tag-util.c
index 12aab08..17d7ac2 100644
--- a/tag-util.c
+++ b/tag-util.c
@@ -47,7 +47,7 @@ parse_tag_line (void *ctx, char *line,
line_for_error = talloc_strdup (ctx, line);
if (line_for_error == NULL) {
fprintf (stderr, "Error: out of memory\n");
- return -1;
+ return TAG_PARSE_OUT_OF_MEMORY;
}
/* remove leading space */
More information about the notmuch
mailing list