summaryrefslogtreecommitdiffstats
path: root/usr.sbin/atm
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/atm
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'usr.sbin/atm')
-rw-r--r--usr.sbin/atm/atmarpd/atmarpd.c3
-rw-r--r--usr.sbin/atm/scspd/scspd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/atm/atmarpd/atmarpd.c b/usr.sbin/atm/atmarpd/atmarpd.c
index 063a304..d221a59 100644
--- a/usr.sbin/atm/atmarpd/atmarpd.c
+++ b/usr.sbin/atm/atmarpd/atmarpd.c
@@ -52,6 +52,7 @@
#include <errno.h>
#include <fcntl.h>
#include <libatm.h>
+#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
@@ -247,7 +248,7 @@ start_daemon()
atmarp_log(LOG_ERR, "can't change process group");
exit(1);
}
- fd = open("/dev/tty", O_RDWR);
+ fd = open(_PATH_TTY, O_RDWR);
if (fd >= 0) {
ioctl(fd, TIOCNOTTY, (char *)0);
close(fd);
diff --git a/usr.sbin/atm/scspd/scspd.c b/usr.sbin/atm/scspd/scspd.c
index a8a6d89..a6f03f3 100644
--- a/usr.sbin/atm/scspd/scspd.c
+++ b/usr.sbin/atm/scspd/scspd.c
@@ -53,6 +53,7 @@
#include <errno.h>
#include <fcntl.h>
#include <libatm.h>
+#include <paths.h>
#include <stdio.h>
#include <string.h>
#include <syslog.h>
@@ -284,7 +285,7 @@ start_daemon()
scsp_log(LOG_ERR, "can't change process group");
exit(1);
}
- fd = open("/dev/tty", O_RDWR);
+ fd = open(_PATH_TTY, O_RDWR);
if (fd >= 0) {
ioctl(fd, TIOCNOTTY, (char *)0);
close(fd);
OpenPOWER on IntegriCloud