diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-12-10 19:10:47 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-12-10 19:10:47 +0000 |
commit | 35720118da0d08dbfb5eb8cb1ee4813897a85d04 (patch) | |
tree | 9f3162ee8c8c7acfb103e542e6d821379ba54f50 | |
parent | 56dabb8f330e10dc28f7cbfd22e6979601e44a85 (diff) |
Capitalize a few error messages to reduce diff with upstream.
-rw-r--r-- | usr.bin/unifdef/unifdef.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c index 419624f16b3..888d94840df 100644 --- a/usr.bin/unifdef/unifdef.c +++ b/usr.bin/unifdef/unifdef.c @@ -1217,9 +1217,9 @@ skipcomment(const char *cp) cp += 2; } else if (strncmp(cp, "\n", 1) == 0) { if (incomment == CHAR_LITERAL) - error("unterminated char literal"); + error("Unterminated char literal"); else - error("unterminated string literal"); + error("Unterminated string literal"); } else cp += 1; continue; @@ -1493,7 +1493,7 @@ defundef(void) if ((cp = matchsym("define", kw)) != NULL) { sym = getsym(&cp); if (sym == NULL) - error("missing macro name in #define"); + error("Missing macro name in #define"); if (*cp == '(') { val = "1"; } else { @@ -1505,12 +1505,12 @@ defundef(void) } else if ((cp = matchsym("undef", kw)) != NULL) { sym = getsym(&cp); if (sym == NULL) - error("missing macro name in #undef"); + error("Missing macro name in #undef"); cp = skipcomment(cp); debug("#undef"); addsym2(false, sym, NULL); } else { - error("unrecognized preprocessor directive"); + error("Unrecognized preprocessor directive"); } skipline(cp); done: @@ -1582,7 +1582,7 @@ error(const char *msg) warnx("%s: %d: %s (#if line %d depth %d)", filename, linenum, msg, stifline[depth], depth); closeio(); - errx(2, "output may be truncated"); + errx(2, "Output may be truncated"); } static FILE * |