X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=tag-util.c;h=343c161f471aa827ff186df01e7c24afe71e5d06;hp=3bde4097372ab827e91e23ff963f6c5413652f9b;hb=735cbb8719068c4741ed0a4f5ea68f2ed31b7009;hpb=f00c925bd10c024d5b9f88d8903c7a0d14e9cc6a diff --git a/tag-util.c b/tag-util.c index 3bde4097..343c161f 100644 --- a/tag-util.c +++ b/tag-util.c @@ -31,14 +31,7 @@ line_error (tag_parse_status_t status, return status; } -/* - * Test tags for some forbidden cases. - * - * return: NULL if OK, - * explanatory message otherwise. - */ - -static const char * +const char * illegal_tag (const char *tag, notmuch_bool_t remove) { @@ -179,7 +172,7 @@ parse_tag_command_line (void *ctx, int argc, char **argv, msg = illegal_tag (argv[i] + 1, is_remove); if (msg) { - fprintf (stderr, "Error: %s", msg); + fprintf (stderr, "Error: %s\n", msg); return TAG_PARSE_INVALID; }