summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/dos.c
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.bin/doscmd/dos.c
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.bin/doscmd/dos.c')
-rw-r--r--usr.bin/doscmd/dos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/doscmd/dos.c b/usr.bin/doscmd/dos.c
index 0a896b1..67b43687 100644
--- a/usr.bin/doscmd/dos.c
+++ b/usr.bin/doscmd/dos.c
@@ -44,6 +44,7 @@
#include <glob.h>
#include <errno.h>
#include <ctype.h>
+#include <paths.h>
#include <stddef.h>
#include "dispatch.h"
@@ -273,7 +274,7 @@ translate_filename(u_char *dname, u_char *uname, int *drivep)
if (!strcasecmp(dname, "con")) {
*drivep = -1;
- strcpy(uname, "/dev/tty");
+ strcpy(uname, _PATH_TTY);
return (0);
}
@@ -281,7 +282,7 @@ translate_filename(u_char *dname, u_char *uname, int *drivep)
/* Really need a better way to handle devices */
if (!strcasecmp(dname, "emmxxxx0")) {
*drivep = -1;
- strcpy(uname, "/dev/null");
+ strcpy(uname, _PATH_DEVNULL);
return (0);
}
OpenPOWER on IntegriCloud