From: David Bremner <bremner@debian.org>
Date: Tue, 25 Dec 2012 19:42:37 +0000 (-0400)
Subject: parse_tag_line: use enum for return value.
X-Git-Tag: 0.15_rc1~38
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=1325e1afb9d93a26644803ec396ed2d87bf8b340;p=notmuch-old

parse_tag_line: use enum for return value.

This is essentially cosmetic, since success=0 is promised by
the comments in tag-utils.h.
---

diff --git a/tag-util.c b/tag-util.c
index 705b7baa..17d7ac2f 100644
--- a/tag-util.c
+++ b/tag-util.c
@@ -40,14 +40,14 @@ parse_tag_line (void *ctx, char *line,
     char *tok = line;
     size_t tok_len = 0;
     char *line_for_error;
-    int ret = 0;
+    tag_parse_status_t ret = TAG_PARSE_SUCCESS;
 
     chomp_newline (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 */