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/netncp/ncp_conn.c | |
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/netncp/ncp_conn.c')
-rw-r--r-- | sys/netncp/ncp_conn.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netncp/ncp_conn.c b/sys/netncp/ncp_conn.c index 026f262..b13688b 100644 --- a/sys/netncp/ncp_conn.c +++ b/sys/netncp/ncp_conn.c @@ -44,7 +44,7 @@ #include <netncp/ncp_subr.h> #include <netncp/ncp_conn.h> -SLIST_HEAD(ncp_handle_head,ncp_handle); +SLIST_HEAD(ncp_handle_head, struct ncp_handle); int ncp_burst_enabled = 1; @@ -248,7 +248,7 @@ ncp_conn_free(struct ncp_conn *ncp) { ncp_conn_unlocklist(ncp->procp); return 0; } - SLIST_REMOVE(&conn_list, ncp, ncp_conn, nc_next); + SLIST_REMOVE(&conn_list, ncp, struct ncp_conn, nc_next); ncp_conn_cnt--; ncp_conn_unlocklist(ncp->procp); if (ncp->li.user) free(ncp->li.user, M_NCPDATA); @@ -434,7 +434,7 @@ ncp_conn_puthandle(struct ncp_handle *handle, struct proc *p, int force) { refp->nh_ref = 0; } if (refp->nh_ref == 0) { - SLIST_REMOVE(&lhlist, refp, ncp_handle, nh_next); + SLIST_REMOVE(&lhlist, refp, struct ncp_handle, nh_next); FREE(refp, M_NCPDATA); } lockmgr(&lhlock, LK_RELEASE, 0, p); @@ -471,7 +471,7 @@ ncp_conn_putprochandles(struct proc *p) { if (hp->nh_proc != p) continue; haveone = 1; hp->nh_conn->ref_cnt -= hp->nh_ref; - SLIST_REMOVE(&lhlist, hp, ncp_handle, nh_next); + SLIST_REMOVE(&lhlist, hp, struct ncp_handle, nh_next); FREE(hp, M_NCPDATA); } lockmgr(&lhlock, LK_RELEASE, 0, p); |