From d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 23 May 2000 20:41:01 +0000 Subject: 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 --- sys/netncp/ncp_conn.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netncp/ncp_conn.h') diff --git a/sys/netncp/ncp_conn.h b/sys/netncp/ncp_conn.h index 850e5e7..2cbb97c 100644 --- a/sys/netncp/ncp_conn.h +++ b/sys/netncp/ncp_conn.h @@ -144,7 +144,7 @@ struct ncp_conn_stat { struct socket; struct u_cred; -SLIST_HEAD(ncp_conn_head,ncp_conn); +SLIST_HEAD(ncp_conn_head, struct ncp_conn); struct ncp_rq; struct ncp_conn; @@ -154,7 +154,7 @@ struct ncp_conn; * This gives us a freedom in maintance of underlying connections. */ struct ncp_handle { - SLIST_ENTRY(ncp_handle) nh_next; + SLIST_ENTRY(struct ncp_handle) nh_next; int nh_id; /* handle id */ struct ncp_conn*nh_conn; /* which conn we are refernce */ struct proc * nh_proc; /* who owns the handle */ @@ -165,7 +165,7 @@ struct ncp_handle { * Describes any connection to server */ struct ncp_conn { - SLIST_ENTRY(ncp_conn) nc_next; + SLIST_ENTRY(struct ncp_conn) nc_next; struct ncp_conn_args li; struct ucred *nc_owner; gid_t nc_group; @@ -176,7 +176,7 @@ struct ncp_conn { struct socket *msg_so; struct socket *bc_so; int ref_cnt; /* how many handles leased */ - SLIST_HEAD(ncp_ref_hd,ncp_ref) ref_list;/* list of handles */ + SLIST_HEAD(ncp_ref_hd, struct ncp_ref) ref_list;/* list of handles */ struct lock nc_lock; /* excl locks */ int nc_lwant; /* number of wanted locks */ struct proc *procp; /* pid currently operates */ -- cgit v1.1