aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mptable
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commit1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch)
treea816cae9543dbb9277a62d68a91416fb2fb33da3 /usr.sbin/mptable
parent2961fc5ac412eec93a03d4badbbf4e01918d864a (diff)
downloadsrc-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.tar.gz
src-1a37aa566b347fbb2d2196786e1e84a79ffea9d5.zip
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Notes
Notes: svn path=/head/; revision=69793
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 ef780f0e72db..784b415a1d46 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 );
}