diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
commit | 1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch) | |
tree | a816cae9543dbb9277a62d68a91416fb2fb33da3 /usr.sbin/rpc.ypxfrd | |
parent | 2961fc5ac412eec93a03d4badbbf4e01918d864a (diff) | |
download | src-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/rpc.ypxfrd')
-rw-r--r-- | usr.sbin/rpc.ypxfrd/ypxfrd_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c index 50a5793ac8ba..e83b99748bf4 100644 --- a/usr.sbin/rpc.ypxfrd/ypxfrd_main.c +++ b/usr.sbin/rpc.ypxfrd/ypxfrd_main.c @@ -38,6 +38,7 @@ static const char rcsid[] = #include "ypxfrd.h" #include <err.h> #include <fcntl.h> +#include <paths.h> #include <stdio.h> #include <stdlib.h> /* getenv, exit */ #include <unistd.h> @@ -240,10 +241,10 @@ main(argc, argv) size = getdtablesize(); for (i = 0; i < size; i++) (void) close(i); - i = open("/dev/console", 2); + i = open(_PATH_CONSOLE, 2); (void) dup2(i, 1); (void) dup2(i, 2); - i = open("/dev/tty", 2); + i = open(_PATH_TTY, 2); if (i >= 0) { (void) ioctl(i, TIOCNOTTY, (char *)NULL); (void) close(i); |