Get rid of 'exit(-1)' calls. Exit codes are limited to 8 bits under most

Unixes, so -1 becomes 0xFF for 2's complement and 0xFE (?) for 1's
complement.

Reviewed by:	bde@FreeBSD.org
This commit is contained in:
Garance A Drosehn 2000-11-14 21:32:52 +00:00
parent cf47e60dd8
commit a4803ea103
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68732

View File

@ -223,12 +223,12 @@ printjob(pp)
if ((tempfd = mkstemp(tempstderr)) == -1) {
syslog(LOG_ERR, "%s: mkstemp(%s): %m", pp->printer,
tempstderr);
exit(-1);
exit(1);
}
if ((i = fchmod(tempfd, 0664)) == -1) {
syslog(LOG_ERR, "%s: fchmod(%s): %m", pp->printer,
tempstderr);
exit(-1);
exit(1);
}
/* lpd doesn't need it to be open, it just needs it to exist */
close(tempfd);