From fb44318364d0692e4c00579a4f4435020c01ec90 Mon Sep 17 00:00:00 2001 From: gad Date: Wed, 13 Aug 2003 20:31:33 +0000 Subject: 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 --- usr.sbin/lpr/lpd/recvjob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/lpr/lpd/recvjob.c') 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); -- cgit v1.1