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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to