exit from main instead of return

This commit is contained in:
ceriel 1987-03-09 12:52:10 +00:00
parent 8fc79aa735
commit 839be66f85

View file

@ -49,19 +49,19 @@ main(argc,argv)
C_magic(); C_magic();
while (p) { while (p) {
if (p->em_type == EM_FATAL) { if (p->em_type == EM_FATAL) {
fatal("EM_getinstr: %s", EM_error); fatal("%s", EM_error);
} }
if (p->em_type == EM_ERROR) { if (p->em_type == EM_ERROR) {
error("EM_getinstr: %s", EM_error); error("%s", EM_error);
} }
else if (!EM_mkcalls(p)) { else if (!EM_mkcalls(p)) {
error("EM_mkcalls: %s", EM_error); error("%s", EM_error);
} }
p = EM_getinstr(); p = EM_getinstr();
} }
C_close(); C_close();
EM_close(); EM_close();
return errors ? 1 : 0; exit(errors);
} }
/* VARARGS */ /* VARARGS */