summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/int17.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/int17.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/int17.c')
-rw-r--r--usr.bin/doscmd/int17.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/doscmd/int17.c b/usr.bin/doscmd/int17.c
index d62d6da..0cb162b 100644
--- a/usr.bin/doscmd/int17.c
+++ b/usr.bin/doscmd/int17.c
@@ -33,6 +33,7 @@
*/
#include "doscmd.h"
+#include <paths.h>
#include <signal.h>
static int lpt_fd[4] = { -1, -1, -1, -1, };
@@ -138,7 +139,7 @@ open_printer(int printer)
return;
}
} else {
- sprintf(printer_name, "/dev/lpt%d", printer);
+ sprintf(printer_name, "%slpt%d", _PATH_DEV, printer);
debug(D_PRINTER, "Opening device %s\n", printer_name);
if ((fd = open(printer_name, O_WRONLY)) < 0) {
perror(printer_name);
OpenPOWER on IntegriCloud