exit from main instead of return
authorceriel <none@none>
Mon, 9 Mar 1987 12:52:10 +0000 (12:52 +0000)
committerceriel <none@none>
Mon, 9 Mar 1987 12:52:10 +0000 (12:52 +0000)
util/misc/convert.c

index 7e67df0..eebc17b 100644 (file)
@@ -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 */