summaryrefslogtreecommitdiffstats
path: root/sys/netncp
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
committerphk <phk@FreeBSD.org>2001-02-04 13:13:25 +0000
commite87f7a15ad62e1dd25061ddb301662e809692c2c (patch)
tree5f0ba9ebd57fbfd6e13f2b9403d96e9bfae48d8f /sys/netncp
parentf3b4fbe35f6e8e9d09f742c114281d8e9984d135 (diff)
downloadFreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.zip
FreeBSD-src-e87f7a15ad62e1dd25061ddb301662e809692c2c.tar.gz
Mechanical change to use <sys/queue.h> macro API instead of
fondling implementation details. Created with: sed(1) Reviewed by: md5(1)
Diffstat (limited to 'sys/netncp')
-rw-r--r--sys/netncp/ncp_conn.c4
-rw-r--r--sys/netncp/ncp_subr.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/netncp/ncp_conn.c b/sys/netncp/ncp_conn.c
index e62b147..f020731 100644
--- a/sys/netncp/ncp_conn.c
+++ b/sys/netncp/ncp_conn.c
@@ -470,8 +470,8 @@ ncp_conn_putprochandles(struct proc *p) {
int haveone = 0;
lockmgr(&lhlock, LK_EXCLUSIVE, 0, p);
- for (hp = lhlist.slh_first; hp; hp = nhp) {
- nhp = hp->nh_next.sle_next;
+ for (hp = SLIST_FIRST(&lhlist); hp; hp = nhp) {
+ nhp = SLIST_NEXT(hp, nh_next);
if (hp->nh_proc != p) continue;
haveone = 1;
hp->nh_conn->ref_cnt -= hp->nh_ref;
diff --git a/sys/netncp/ncp_subr.c b/sys/netncp/ncp_subr.c
index 4601690..00c8503 100644
--- a/sys/netncp/ncp_subr.c
+++ b/sys/netncp/ncp_subr.c
@@ -82,8 +82,8 @@ ncp_at_exit(struct proc *p) {
if (ncp_conn_putprochandles(p) == 0) return;
ncp_conn_locklist(LK_EXCLUSIVE, p);
- for (ncp = conn_list.slh_first; ncp; ncp = nncp) {
- nncp = ncp->nc_next.sle_next;
+ for (ncp = SLIST_FIRST(&conn_list); ncp; ncp = nncp) {
+ nncp = SLIST_NEXT(ncp, nc_next);
if (ncp->ref_cnt != 0) continue;
if (ncp_conn_lock(ncp, p, p->p_ucred,NCPM_READ|NCPM_EXECUTE|NCPM_WRITE))
continue;
@@ -113,8 +113,8 @@ ncp_done(void) {
untimeout(ncp_timer,NULL,ncp_timer_handle);
rm_at_exit(ncp_at_exit);
ncp_conn_locklist(LK_EXCLUSIVE, p);
- for (ncp = conn_list.slh_first; ncp; ncp = nncp) {
- nncp = ncp->nc_next.sle_next;
+ for (ncp = SLIST_FIRST(&conn_list); ncp; ncp = nncp) {
+ nncp = SLIST_NEXT(ncp, nc_next);
ncp->ref_cnt = 0;
if (ncp_conn_lock(ncp, p, p->p_ucred,NCPM_READ|NCPM_EXECUTE|NCPM_WRITE)) {
NCPFATAL("Can't lock connection !\n");
OpenPOWER on IntegriCloud