fix error count on error

This commit is contained in:
ceriel 1988-09-09 11:25:43 +00:00
parent 291b607f4e
commit ec5cff92d8

View file

@ -1,5 +1,7 @@
#include <system.h>
extern int nerrors;
error( fmt, argv)
char *fmt;
int argv;
@ -7,4 +9,5 @@ int argv;
fprint( STDERR, "!! ERROR : ");
doprnt( STDERR, fmt, &argv);
fprint( STDERR, " !!\n");
nerrors++;
}