summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-10-28 06:00:13 +0000
committerEd Schouten <ed@FreeBSD.org>2008-10-28 06:00:13 +0000
commitb8cbf1a36abcedc187daced4204a9fb27da73256 (patch)
tree758fd8713e69f7a4ead0de797f8c91de0ad937c0 /lib/libutil
parent0c3d9d1f6b9754af2342033c98e4d8ba973bfbe3 (diff)
Notes
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/pty.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index 6513fd3802b0..c60d250f443f 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -47,7 +47,6 @@ static char sccsid[] = "@(#)pty.c 8.3 (Berkeley) 5/16/94";
#include <stdlib.h>
#include <string.h>
#include <termios.h>
-#include <unistd.h>
int
openpty(int *amaster, int *aslave, char *name, struct termios *termp,
@@ -70,9 +69,6 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
if (slavename == NULL)
goto bad;
- if (revoke(slavename) == -1)
- goto bad;
-
slave = open(slavename, O_RDWR);
if (slave == -1)
goto bad;