summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_conn.h
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
committerjake <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
commitd93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch)
treea4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/netncp/ncp_conn.h
parente814d2a0db522b0f163eef55a56d05aa226951f3 (diff)
downloadFreeBSD-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/netncp/ncp_conn.h')
-rw-r--r--sys/netncp/ncp_conn.h8
1 files changed, 4 insertions, 4 deletions
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 */
OpenPOWER on IntegriCloud