diff options
author | gad <gad@FreeBSD.org> | 2000-11-14 21:32:52 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2000-11-14 21:32:52 +0000 |
commit | 703de2fc19207523c49cb65133235d37aa74568b (patch) | |
tree | bd79168a18a08345445db04a7d69883ac00e8160 /usr.sbin/lpr | |
parent | f66b7adc24f17e14f9a6c9c61a2167b8b97ea147 (diff) | |
download | FreeBSD-src-703de2fc19207523c49cb65133235d37aa74568b.zip FreeBSD-src-703de2fc19207523c49cb65133235d37aa74568b.tar.gz |
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
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index ccf436a..f9fba20 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -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); |