summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mptable
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commitc2ee1dcc02035d781d6c70f06df7106979a9f870 (patch)
tree757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /usr.sbin/mptable
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.sbin/mptable')
-rw-r--r--usr.sbin/mptable/mptable.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c
index ef780f0..784b415 100644
--- a/usr.sbin/mptable/mptable.c
+++ b/usr.sbin/mptable/mptable.c
@@ -49,6 +49,7 @@ static const char rcsid[] =
#include <sys/types.h>
#include <err.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -350,7 +351,7 @@ main( int argc, char *argv[] )
}
/* open physical memory for access to MP structures */
- if ( (pfd = open( "/dev/mem", O_RDONLY )) < 0 )
+ if ( (pfd = open( _PATH_MEM, O_RDONLY )) < 0 )
err( 1, "mem open" );
/* probe for MP structures */
@@ -866,7 +867,7 @@ static void
seekEntry( vm_offset_t addr )
{
if ( lseek( pfd, (off_t)addr, SEEK_SET ) < 0 )
- err( 1, "/dev/mem seek" );
+ err( 1, "%s seek", _PATH_MEM );
}
OpenPOWER on IntegriCloud