From 05212689bb4f66419e4bce80499db4753194cb3e Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 28 Sep 2015 18:19:22 +0000 Subject: [PATCH] Use _PATH_DEVNULL instead of direct hardcoding. MFC after: 2 weeks --- usr.bin/systat/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index 0724d9aaa472..5e509ca08b66 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -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);