summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/grantpt.c
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2005-03-04 20:23:32 +0000
committerBrian Feldman <green@FreeBSD.org>2005-03-04 20:23:32 +0000
commit91320d17ccf0ce4d47c002f916751c4ae97ca625 (patch)
tree40fbf9b0e753a8a9d1341a855f049aead5d590e9 /lib/libc/stdlib/grantpt.c
parente2285b8070985149c07aa96279d5cf3cf0869583 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/grantpt.c')
-rw-r--r--lib/libc/stdlib/grantpt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c
index 3b7a0e9cdd92a..d0cb4ebe8b3f2 100644
--- a/lib/libc/stdlib/grantpt.c
+++ b/lib/libc/stdlib/grantpt.c
@@ -54,8 +54,6 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include "un-namespace.h"
-#define PTM_MAJOR 6 /* pseudo tty master major */
-#define PTS_MAJOR 5 /* pseudo tty slave major */
#define PTM_PREFIX "pty" /* pseudo tty master naming convention */
#define PTS_PREFIX "tty" /* pseudo tty slave naming convention */
@@ -77,7 +75,6 @@ __FBSDID("$FreeBSD$");
* The bounds checking may be unnecessary but it does eliminate doubt.
*/
#define ISPTM(x) (S_ISCHR((x).st_mode) && \
- major((x).st_rdev) == PTM_MAJOR && \
minor((x).st_rdev) >= 0 && \
minor((x).st_rdev) < PT_MAX)