diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/miscfs | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/fdesc/fdesc.h | 2 | ||||
-rw-r--r-- | sys/miscfs/fdesc/fdesc_vnops.c | 2 | ||||
-rw-r--r-- | sys/miscfs/fifofs/fifo_vnops.c | 4 | ||||
-rw-r--r-- | sys/miscfs/nullfs/null.h | 2 | ||||
-rw-r--r-- | sys/miscfs/nullfs/null_subr.c | 2 | ||||
-rw-r--r-- | sys/miscfs/umapfs/umap.h | 2 | ||||
-rw-r--r-- | sys/miscfs/umapfs/umap_subr.c | 2 | ||||
-rw-r--r-- | sys/miscfs/union/union.h | 2 | ||||
-rw-r--r-- | sys/miscfs/union/union_subr.c | 2 |
9 files changed, 10 insertions, 10 deletions
diff --git a/sys/miscfs/fdesc/fdesc.h b/sys/miscfs/fdesc/fdesc.h index 60b6006..cbd45fa 100644 --- a/sys/miscfs/fdesc/fdesc.h +++ b/sys/miscfs/fdesc/fdesc.h @@ -52,7 +52,7 @@ typedef enum { } fdntype; struct fdescnode { - LIST_ENTRY(fdescnode) fd_hash; /* Hash list */ + LIST_ENTRY(struct fdescnode) fd_hash; /* Hash list */ struct vnode *fd_vnode; /* Back ptr to vnode */ fdntype fd_type; /* Type of this node */ unsigned fd_fd; /* Fd to be dup'ed */ diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c index 368d844..0f00f1c 100644 --- a/sys/miscfs/fdesc/fdesc_vnops.c +++ b/sys/miscfs/fdesc/fdesc_vnops.c @@ -67,7 +67,7 @@ static vop_t **fdesc_vnodeop_p; #define NFDCACHE 4 #define FD_NHASH(ix) \ (&fdhashtbl[(ix) & fdhash]) -static LIST_HEAD(fdhashhead, fdescnode) *fdhashtbl; +static LIST_HEAD(fdhashhead, struct fdescnode) *fdhashtbl; static u_long fdhash; static int fdesc_badop __P((void)); diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c index 5bd13a7..a1b82c9 100644 --- a/sys/miscfs/fifofs/fifo_vnops.c +++ b/sys/miscfs/fifofs/fifo_vnops.c @@ -372,7 +372,7 @@ filt_fifordetach(struct knote *kn) struct vnode *vn = (struct vnode *)kn->kn_fp->f_data; struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock; - SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, knote, kn_selnext); + SLIST_REMOVE(&so->so_rcv.sb_sel.si_note, kn, struct knote, kn_selnext); if (SLIST_EMPTY(&so->so_rcv.sb_sel.si_note)) so->so_rcv.sb_flags &= ~SB_KNOTE; } @@ -409,7 +409,7 @@ filt_fifowdetach(struct knote *kn) struct vnode *vn = (struct vnode *)kn->kn_fp->f_data; struct socket *so = (struct socket *)vn->v_fifoinfo->fi_readsock; - SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, knote, kn_selnext); + SLIST_REMOVE(&so->so_snd.sb_sel.si_note, kn, struct knote, kn_selnext); if (SLIST_EMPTY(&so->so_snd.sb_sel.si_note)) so->so_snd.sb_flags &= ~SB_KNOTE; } diff --git a/sys/miscfs/nullfs/null.h b/sys/miscfs/nullfs/null.h index 2b7ed51..8747230 100644 --- a/sys/miscfs/nullfs/null.h +++ b/sys/miscfs/nullfs/null.h @@ -52,7 +52,7 @@ struct null_mount { * A cache of vnode references */ struct null_node { - LIST_ENTRY(null_node) null_hash; /* Hash list */ + LIST_ENTRY(struct null_node) null_hash; /* Hash list */ struct vnode *null_lowervp; /* VREFed once */ struct vnode *null_vnode; /* Back pointer */ }; diff --git a/sys/miscfs/nullfs/null_subr.c b/sys/miscfs/nullfs/null_subr.c index ad37a1e..7c4f669 100644 --- a/sys/miscfs/nullfs/null_subr.c +++ b/sys/miscfs/nullfs/null_subr.c @@ -59,7 +59,7 @@ #define NULL_NHASH(vp) \ (&null_node_hashtbl[(((uintptr_t)vp)>>LOG2_SIZEVNODE) & null_node_hash]) -static LIST_HEAD(null_node_hashhead, null_node) *null_node_hashtbl; +static LIST_HEAD(null_node_hashhead, struct null_node) *null_node_hashtbl; static u_long null_node_hash; static int null_node_alloc __P((struct mount *mp, struct vnode *lowervp, diff --git a/sys/miscfs/umapfs/umap.h b/sys/miscfs/umapfs/umap.h index eb562ed..0964614 100644 --- a/sys/miscfs/umapfs/umap.h +++ b/sys/miscfs/umapfs/umap.h @@ -67,7 +67,7 @@ struct umap_mount { * A cache of vnode references */ struct umap_node { - LIST_ENTRY(umap_node) umap_hash; /* Hash list */ + LIST_ENTRY(struct umap_node) umap_hash; /* Hash list */ struct vnode *umap_lowervp; /* Aliased vnode - VREFed once */ struct vnode *umap_vnode; /* Back pointer to vnode/umap_node */ }; diff --git a/sys/miscfs/umapfs/umap_subr.c b/sys/miscfs/umapfs/umap_subr.c index 6f08513..0ec9a43 100644 --- a/sys/miscfs/umapfs/umap_subr.c +++ b/sys/miscfs/umapfs/umap_subr.c @@ -60,7 +60,7 @@ #define UMAP_NHASH(vp) \ (&umap_node_hashtbl \ [((uintptr_t)(void *)(vp) >> LOG2_SIZEVNODE) & umap_node_hash]) -static LIST_HEAD(umap_node_hashhead, umap_node) *umap_node_hashtbl; +static LIST_HEAD(umap_node_hashhead, struct umap_node) *umap_node_hashtbl; static u_long umap_node_hash; static u_long umap_findid __P((u_long id, u_long map[][2], int nentries)); diff --git a/sys/miscfs/union/union.h b/sys/miscfs/union/union.h index a720d41..65be0ab 100644 --- a/sys/miscfs/union/union.h +++ b/sys/miscfs/union/union.h @@ -79,7 +79,7 @@ struct union_mount { */ struct union_node { struct lock un_lock; - LIST_ENTRY(union_node) un_cache; /* Hash chain */ + LIST_ENTRY(struct union_node) un_cache; /* Hash chain */ struct vnode *un_vnode; /* Back pointer */ struct vnode *un_uppervp; /* overlaying object */ struct vnode *un_lowervp; /* underlying object */ diff --git a/sys/miscfs/union/union_subr.c b/sys/miscfs/union/union_subr.c index 6b88bef..4d4c2fa 100644 --- a/sys/miscfs/union/union_subr.c +++ b/sys/miscfs/union/union_subr.c @@ -67,7 +67,7 @@ extern int union_init __P((void)); #define UNION_HASH(u, l) \ (((((uintptr_t) (u)) + ((uintptr_t) l)) >> 8) & (NHASH-1)) -static LIST_HEAD(unhead, union_node) unhead[NHASH]; +static LIST_HEAD(unhead, struct union_node) unhead[NHASH]; static int unvplock[NHASH]; static void union_dircache_r __P((struct vnode *vp, struct vnode ***vppp, |