diff options
author | phk <phk@FreeBSD.org> | 1999-07-17 20:29:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-07-17 20:29:10 +0000 |
commit | 6063f24ab8d9d89a4149c1e0315451a45fa07b09 (patch) | |
tree | ef3b6daed07605ddfd492a3cdf35559af970fa40 /sys/kern/kern_proc.c | |
parent | 09327a40f900b3f22af934919a8b9ed051dabcd2 (diff) | |
download | FreeBSD-src-6063f24ab8d9d89a4149c1e0315451a45fa07b09.zip FreeBSD-src-6063f24ab8d9d89a4149c1e0315451a45fa07b09.tar.gz |
Reverse the sense of a test, dev2udev() will be much cheaper than
udev2dev().
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r-- | sys/kern/kern_proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 336fbef..eabdf33 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95 - * $Id: kern_proc.c,v 1.51 1999/05/17 13:28:35 dfr Exp $ + * $Id: kern_proc.c,v 1.52 1999/05/17 13:50:24 phk Exp $ */ #include <sys/param.h> @@ -548,8 +548,8 @@ sysctl_kern_proc SYSCTL_HANDLER_ARGS if ((p->p_flag & P_CONTROLT) == 0 || p->p_session == NULL || p->p_session->s_ttyp == NULL || - p->p_session->s_ttyp->t_dev != - udev2dev((udev_t)name[0], 0)) + dev2udev(p->p_session->s_ttyp->t_dev) != + (udev_t)name[0]) continue; break; |