X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=tag-util.c;h=17d7ac2f28ace0fa377bfb069fdff06fcabb36e9;hp=705b7baa383589468aa816b6a5811fe0725671a5;hb=5a1b22e2bcc1d5321aa085f559c4550d831d9163;hpb=ba4e8565294fc0a197b4c08082ad912c31888008 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 */