Revert use of system exit codes.

While well‐intentioned, in practice this hurts portability and
really, nobody checks the return codes anyway.
This commit is contained in:
Anthony J. Bentley
2011-06-04 21:33:03 -06:00
parent d784b14615
commit b1a2c664a9
6 changed files with 16 additions and 22 deletions

View File

@@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include "link/mylink.h"
#include "link/main.h"
@@ -446,7 +445,7 @@ obj_Readfile(char *tzObjectfile)
pObjfile = fopen(tzObjectfile, "rb");
if (pObjfile == NULL)
err(EX_NOINPUT, "Unable to open object '%s'",
err(1, "Unable to open object '%s'",
tzObjectfile);
obj_ReadOpenFile(pObjfile, tzObjectfile);
fclose(pObjfile);
@@ -496,7 +495,7 @@ lib_Readfile(char *tzLibfile)
pObjfile = fopen(tzLibfile, "rb");
if (pObjfile == NULL)
err(EX_NOINPUT, "Unable to open object '%s'", tzLibfile);
err(1, "Unable to open object '%s'", tzLibfile);
if (!pObjfile) {
errx(5, "Unable to open '%s'", tzLibfile);
}