Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/kqueue]: src/sys/coda fix mistake in filt_*() - mistakely used kn_data r...



details:   https://anonhg.NetBSD.org/src/rev/c4ae4875d5ba
branches:  kqueue
changeset: 512541:c4ae4875d5ba
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Oct 02 21:27:08 2002 +0000

description:
fix mistake in filt_*() - mistakely used kn_data rather than kn_hook
drop (void *) casts for kn_hook which are not needed anymore

diffstat:

 sys/coda/coda_psdev.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r d7e905504d69 -r c4ae4875d5ba sys/coda/coda_psdev.c
--- a/sys/coda/coda_psdev.c     Wed Oct 02 19:37:51 2002 +0000
+++ b/sys/coda/coda_psdev.c     Wed Oct 02 21:27:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coda_psdev.c,v 1.16.2.3 2002/01/10 19:50:53 thorpej Exp $      */
+/*     $NetBSD: coda_psdev.c,v 1.16.2.4 2002/10/02 21:27:08 jdolecek Exp $     */
 
 /*
  * 
@@ -52,7 +52,7 @@
 /* These routines are the device entry points for Venus. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.16.2.3 2002/01/10 19:50:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.16.2.4 2002/10/02 21:27:08 jdolecek Exp $");
 
 extern int coda_nc_initialized;    /* Set if cache has been initialized */
 
@@ -484,7 +484,7 @@
 static void
 filt_vc_nb_detach(struct knote *kn)
 {
-       struct vcomm *vcp = (void *) kn->kn_data;
+       struct vcomm *vcp = kn->kn_hook;
 
        SLIST_REMOVE(&vcp->vc_selproc.si_klist, kn, knote, kn_selnext);
 }
@@ -492,7 +492,7 @@
 static int
 filt_vc_nb_read(struct knote *kn, long hint)
 {
-       struct vcomm *vcp = (void *) kn->kn_data; 
+       struct vcomm *vcp = kn->kn_hook; 
        struct vmsg *vmp;
 
        if (EMPTY(vcp->vc_requests))
@@ -530,7 +530,7 @@
                return (1);
        }
 
-       kn->kn_hook = (void *) vcp;
+       kn->kn_hook = vcp;
 
        SLIST_INSERT_HEAD(klist, kn, kn_selnext);
 



Home | Main Index | Thread Index | Old Index