From ef91350f0c9089fa27bd8883ef22c8f502d3ea60 Mon Sep 17 00:00:00 2001 From: delphij 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); -- 2.39.5