diff options
author | gad <gad@FreeBSD.org> | 2003-08-13 20:31:33 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2003-08-13 20:31:33 +0000 |
commit | fb44318364d0692e4c00579a4f4435020c01ec90 (patch) | |
tree | 9422a00046ff5a52ed566bb57092b5978549f284 /usr.sbin/lpr/lpd/recvjob.c | |
parent | 7a81ace60df101a63207841af8b2a9fe36ac7703 (diff) | |
download | FreeBSD-src-fb44318364d0692e4c00579a4f4435020c01ec90.zip FreeBSD-src-fb44318364d0692e4c00579a4f4435020c01ec90.tar.gz |
Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few more
places (replacing constants 0, 1 & 2).
Noticed by:
Reviewed by: md5
MFC after: 4 days
Diffstat (limited to 'usr.sbin/lpr/lpd/recvjob.c')
-rw-r--r-- | usr.sbin/lpr/lpd/recvjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c index d85ef59..37b1044 100644 --- a/usr.sbin/lpr/lpd/recvjob.c +++ b/usr.sbin/lpr/lpd/recvjob.c @@ -111,7 +111,7 @@ recvjob(const char *printer) break; } - (void) close(2); /* set up log file */ + (void) close(STDERR_FILENO); /* set up log file */ if (open(pp->log_file, O_WRONLY|O_APPEND, 0664) < 0) { syslog(LOG_ERR, "%s: %m", pp->log_file); (void) open(_PATH_DEVNULL, O_WRONLY); |