fix exit status

This commit is contained in:
ceriel
1988-09-09 11:36:57 +00:00
parent a41d9f0a24
commit 0f09afdd84
2 changed files with 7 additions and 3 deletions

View File

@@ -221,6 +221,8 @@ va_dcl
va_end(pvar);
}
extern int nerrors;
/*VARARGS*/
error(va_alist)
va_dcl
@@ -228,6 +230,7 @@ va_dcl
char *fmt;
va_list pvar;
nerrors++;
va_start(pvar);
fmt = va_arg(pvar, char *);
fprint( STDERR, "!! ERROR : ");