Use _PATH_DEVNULL instead of direct hardcoding.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2015-09-28 18:19:22 +00:00
parent 3a8cff7804
commit 05212689bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288344

View File

@ -178,7 +178,7 @@ main(int argc, char **argv)
* devices. We can now use sysctl only.
*/
use_kvm = 0;
kd = kvm_openfiles("/dev/null", "/dev/null", "/dev/null",
kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL,
O_RDONLY, errbuf);
if (kd == NULL) {
error("%s", errbuf);