Use _PATH_DEVNULL instead of hardcoding.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2016-07-11 05:44:58 +00:00
parent 2d774f207c
commit 56858424bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302542

View File

@ -339,9 +339,9 @@ collect(struct header *hp, int printheaders)
int nullfd, tempfd, rc;
char tempname2[PATHSIZE];
if ((nullfd = open("/dev/null", O_RDONLY, 0))
if ((nullfd = open(_PATH_DEVNULL, O_RDONLY, 0))
== -1) {
warn("/dev/null");
warn(_PATH_DEVNULL);
break;
}