summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fdwrite
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/fdwrite
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.sbin/fdwrite')
-rw-r--r--usr.sbin/fdwrite/fdwrite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/fdwrite/fdwrite.c b/usr.sbin/fdwrite/fdwrite.c
index 4ab858e..00279c5 100644
--- a/usr.sbin/fdwrite/fdwrite.c
+++ b/usr.sbin/fdwrite/fdwrite.c
@@ -13,6 +13,7 @@
#include <ctype.h>
#include <err.h>
#include <fcntl.h>
+#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
@@ -106,9 +107,9 @@ main(int argc, char **argv)
if(optind < argc)
usage();
- tty = fopen("/dev/tty","r+");
+ tty = fopen(_PATH_TTY,"r+");
if(!tty)
- err(1, "/dev/tty");
+ err(1, _PATH_TTY);
setbuf(tty,0);
for(j=1;j > 0;) {
OpenPOWER on IntegriCloud