From: ceriel Date: Mon, 9 Mar 1987 12:52:10 +0000 (+0000) Subject: exit from main instead of return X-Git-Tag: release-5-5~4486 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=839be66f8566c4c808807f9b105decf02928daa9;p=ack.git exit from main instead of return --- diff --git a/util/misc/convert.c b/util/misc/convert.c index 7e67df01b..eebc17bcc 100644 --- a/util/misc/convert.c +++ b/util/misc/convert.c @@ -49,19 +49,19 @@ main(argc,argv) C_magic(); while (p) { if (p->em_type == EM_FATAL) { - fatal("EM_getinstr: %s", EM_error); + fatal("%s", EM_error); } if (p->em_type == EM_ERROR) { - error("EM_getinstr: %s", EM_error); + error("%s", EM_error); } else if (!EM_mkcalls(p)) { - error("EM_mkcalls: %s", EM_error); + error("%s", EM_error); } p = EM_getinstr(); } C_close(); EM_close(); - return errors ? 1 : 0; + exit(errors); } /* VARARGS */