diff options
author | David Bremner <bremner@debian.org> | 2012-12-25 15:42:37 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-12-26 09:44:31 -0400 |
commit | 1325e1afb9d93a26644803ec396ed2d87bf8b340 (patch) | |
tree | dce2937ae21ae9b9ad01f2a85d743a9915613fc1 /tag-util.c | |
parent | a1ddf62f6a54e1e82410445346ec9ba15db1b692 (diff) |
parse_tag_line: use enum for return value.
This is essentially cosmetic, since success=0 is promised by
the comments in tag-utils.h.
Diffstat (limited to 'tag-util.c')
-rw-r--r-- | tag-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |