svn commit: r288344 - head/usr.bin/systat

Xin LI delphij at FreeBSD.org
Mon Sep 28 18:19:23 UTC 2015


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);


More information about the svn-src-head mailing list