Source-Changes-HG archive

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

[src/kqueue]: src/sys/miscfs don't need cast to (caddr_t) for kn_hook anymore



details:   https://anonhg.NetBSD.org/src/rev/708e4e05c363
branches:  kqueue
changeset: 512533:708e4e05c363
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Sep 29 09:58:15 2002 +0000

description:
don't need cast to (caddr_t) for kn_hook anymore

diffstat:

 sys/miscfs/fifofs/fifo_vnops.c |  6 +++---
 sys/miscfs/genfs/genfs_vnops.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 4049bde96dac -r 708e4e05c363 sys/miscfs/fifofs/fifo_vnops.c
--- a/sys/miscfs/fifofs/fifo_vnops.c    Sun Sep 29 09:29:26 2002 +0000
+++ b/sys/miscfs/fifofs/fifo_vnops.c    Sun Sep 29 09:58:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fifo_vnops.c,v 1.30.4.6 2002/09/24 11:47:40 jdolecek Exp $     */
+/*     $NetBSD: fifo_vnops.c,v 1.30.4.7 2002/09/29 09:58:15 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1990, 1993, 1995
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fifo_vnops.c,v 1.30.4.6 2002/09/24 11:47:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fifo_vnops.c,v 1.30.4.7 2002/09/29 09:58:15 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -595,7 +595,7 @@
                return (1);
        }
 
-       ap->a_kn->kn_hook = (caddr_t)so;
+       ap->a_kn->kn_hook = so;
 
        SLIST_INSERT_HEAD(&sb->sb_sel.si_klist, ap->a_kn, kn_selnext);
        sb->sb_flags |= SB_KNOTE;
diff -r 4049bde96dac -r 708e4e05c363 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c    Sun Sep 29 09:29:26 2002 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c    Sun Sep 29 09:58:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: genfs_vnops.c,v 1.35.2.6 2002/09/25 21:36:58 jdolecek Exp $    */
+/*     $NetBSD: genfs_vnops.c,v 1.35.2.7 2002/09/29 09:58:16 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.35.2.6 2002/09/25 21:36:58 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.35.2.7 2002/09/29 09:58:16 jdolecek Exp $");
 
 #include "opt_nfsserver.h"
 
@@ -1719,7 +1719,7 @@
                return (1);
        }
 
-       kn->kn_hook = (caddr_t)vp;
+       kn->kn_hook = vp;
 
        /* XXXLUKEM lock the struct? */
        SLIST_INSERT_HEAD(&vp->v_klist, kn, kn_selnext);



Home | Main Index | Thread Index | Old Index