Rename error/errorx -> fatal/fatalx and remove the exit value as

it was always 1.
This commit is contained in:
Todd C. Miller
2013-04-18 14:07:59 -04:00
parent 0fe2c3eb99
commit 39acd2fcba
35 changed files with 270 additions and 270 deletions

View File

@@ -54,7 +54,7 @@ static linux_audit_open(void)
if (au_fd == -1) {
/* Kernel may not have audit support. */
if (errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
error(1, _("unable to open audit system"));
fatal(_("unable to open audit system"));
} else {
(void)fcntl(au_fd, F_SETFD, FD_CLOEXEC);
}
@@ -79,7 +79,7 @@ linux_audit_command(char *argv[], int result)
for (av = argv; *av != NULL; av++) {
n = strlcpy(cp, *av, size - (cp - command));
if (n >= size - (cp - command)) {
errorx(1, _("internal error, %s overflow"),
fatalx(_("internal error, %s overflow"),
"linux_audit_command()");
}
cp += n;