From 40dd98a3bd2049465e7644b361b60da41a46efa0 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 17 Jun 2004 17:16:53 +0000 Subject: Second half of the dev_t cleanup. The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc. --- sys/kern/tty_pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/tty_pty.c') diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index b4082a3..1e5d202 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -143,7 +143,7 @@ ptyinit(struct cdev *devc) n = minor(devc); /* For now we only map the lower 8 bits of the minor */ if (n & ~0xff) - return (NODEV); + return (NULL); devc->si_flags &= ~SI_CHEAPCLONE; @@ -777,7 +777,7 @@ pty_clone(void *arg, char *name, int namelen, struct cdev **dev) { int u; - if (*dev != NODEV) + if (*dev != NULL) return; if (bcmp(name, "pty", 3) != 0) return; -- cgit v1.1