Date: Mon, 28 Sep 2015 18:19:23 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288344 - head/usr.bin/systat Message-ID: <201509281819.t8SIJNDr012600@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Sep 28 18:19:22 2015 New Revision: 288344 URL: https://svnweb.freebsd.org/changeset/base/288344 Log: Use _PATH_DEVNULL instead of direct hardcoding. MFC after: 2 weeks Modified: head/usr.bin/systat/main.c Modified: head/usr.bin/systat/main.c ============================================================================== --- head/usr.bin/systat/main.c Mon Sep 28 17:30:07 2015 (r288343) +++ head/usr.bin/systat/main.c Mon Sep 28 18:19:22 2015 (r288344) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509281819.t8SIJNDr012600>