projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1ddf62
)
parse_tag_line: use enum for return value.
author
David Bremner
<bremner@debian.org>
Tue, 25 Dec 2012 19:42:37 +0000
(15:42 -0400)
committer
David Bremner
<bremner@debian.org>
Wed, 26 Dec 2012 13:44:31 +0000
(09:44 -0400)
This is essentially cosmetic, since success=0 is promised by
the comments in tag-utils.h.
tag-util.c
patch
|
blob
|
history
diff --git
a/tag-util.c
b/tag-util.c
index 705b7baa383589468aa816b6a5811fe0725671a5..17d7ac2f28ace0fa377bfb069fdff06fcabb36e9 100644
(file)
--- 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 */