mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
parse_tag_line: use enum for return value.
This is essentially cosmetic, since success=0 is promised by the comments in tag-utils.h.
This commit is contained in:
parent
a1ddf62f6a
commit
1325e1afb9
1 changed files with 2 additions and 2 deletions
|
@ -40,14 +40,14 @@ parse_tag_line (void *ctx, char *line,
|
||||||
char *tok = line;
|
char *tok = line;
|
||||||
size_t tok_len = 0;
|
size_t tok_len = 0;
|
||||||
char *line_for_error;
|
char *line_for_error;
|
||||||
int ret = 0;
|
tag_parse_status_t ret = TAG_PARSE_SUCCESS;
|
||||||
|
|
||||||
chomp_newline (line);
|
chomp_newline (line);
|
||||||
|
|
||||||
line_for_error = talloc_strdup (ctx, line);
|
line_for_error = talloc_strdup (ctx, line);
|
||||||
if (line_for_error == NULL) {
|
if (line_for_error == NULL) {
|
||||||
fprintf (stderr, "Error: out of memory\n");
|
fprintf (stderr, "Error: out of memory\n");
|
||||||
return -1;
|
return TAG_PARSE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* remove leading space */
|
/* remove leading space */
|
||||||
|
|
Loading…
Reference in a new issue