diff options
Diffstat (limited to 'usr.bin/error/input.c')
-rw-r--r-- | usr.bin/error/input.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/error/input.c b/usr.bin/error/input.c index a83013a..6edd5f7 100644 --- a/usr.bin/error/input.c +++ b/usr.bin/error/input.c @@ -102,7 +102,7 @@ eaterrors(r_errorc, r_errorv) else errorclass = catchall(); if (wordc) - erroradd(wordc, wordv+1, errorclass, C_UNKNOWN); + erroradd(wordc, wordv+1, errorclass, C_UNKNOWN); } #ifdef FULLDEBUG printf("%d errorentrys\n", nerrors); @@ -176,7 +176,7 @@ Errorclass onelong() if (strcmp(wordv[1], "Assembler:") == 0){ /* assembler always alerts us to what happened*/ language = INAS; return(C_SYNC); - } else + } else if (strcmp(wordv[1], "Undefined:") == 0){ /* loader complains about unknown symbols*/ language = INLD; return(C_SYNC); @@ -206,7 +206,7 @@ Errorclass onelong() Errorclass cpp() { - /* + /* * Now attempt a cpp error message match * Examples: * ./morse.h: 23: undefined control @@ -297,7 +297,7 @@ Errorclass lint0() /* * Attempt a match for the new lint style normal compiler * error messages, of the form - * + * * printf("%s(%d): %s\n", filename, linenumber, message); */ if (wordc >= 2){ @@ -371,7 +371,7 @@ Errorclass lint2() * * bufp defined( "./metric.h"(10) ), but never used */ - if ( (lastchar(wordv[2]) == '(' /* ')' */ ) + if ( (lastchar(wordv[2]) == '(' /* ')' */ ) && (strcmp(wordv[4], "),") == 0) ){ language = INLINT; if (persperdexplode(wordv[3], &line, &file)){ @@ -461,13 +461,13 @@ Errorclass ri() * Match an error message produced by ri; here is the * procedure yanked from the distributed version of ri * April 24, 1980. - * + * * serror(str, x1, x2, x3) * char str[]; * char *x1, *x2, *x3; * { * extern int yylineno; - * + * * putc('"', stdout); * fputs(srcfile, stdout); * putc('"', stdout); |