diff options
author | Xin LI <delphij@FreeBSD.org> | 2015-09-28 18:19:22 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2015-09-28 18:19:22 +0000 |
commit | 05212689bb4f66419e4bce80499db4753194cb3e (patch) | |
tree | 164400d1c3b922a5c615a0f93437245fe761e2c5 /usr.bin/systat/main.c | |
parent | 3a8cff78049a5764268fc471ea2cd86d0df5682e (diff) | |
download | src-05212689bb4f66419e4bce80499db4753194cb3e.tar.gz src-05212689bb4f66419e4bce80499db4753194cb3e.zip |
Use _PATH_DEVNULL instead of direct hardcoding.
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=288344
Diffstat (limited to 'usr.bin/systat/main.c')
-rw-r--r-- | usr.bin/systat/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |