diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-03-22 04:54:36 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-03-22 04:54:36 +0000 |
commit | 5be96e4b7ceed3291bf4c07504488415106c5d70 (patch) | |
tree | 6ca6636bef03d596937ef1265e71998fe3c46923 | |
parent | e7287c638a016ebd0c8c61e650b4e67d5aa011d8 (diff) | |
download | FreeBSD-src-5be96e4b7ceed3291bf4c07504488415106c5d70.zip FreeBSD-src-5be96e4b7ceed3291bf4c07504488415106c5d70.tar.gz |
Rename 'ddpcb' variable to 'ddpcb_list' to better distinguish it from
'struct ddpcb'.
-rw-r--r-- | sys/netatalk/ddp_pcb.c | 12 | ||||
-rw-r--r-- | sys/netatalk/ddp_usrreq.c | 2 | ||||
-rw-r--r-- | sys/netatalk/ddp_var.h | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/netatalk/ddp_pcb.c b/sys/netatalk/ddp_pcb.c index 0ae0944..295b458 100644 --- a/sys/netatalk/ddp_pcb.c +++ b/sys/netatalk/ddp_pcb.c @@ -23,7 +23,7 @@ #include <netatalk/at_extern.h> static struct ddpcb *ddp_ports[ ATPORT_LAST ]; -struct ddpcb *ddpcb = NULL; +struct ddpcb *ddpcb_list = NULL; void at_sockaddr(struct ddpcb *ddp, struct sockaddr **addr) @@ -235,14 +235,14 @@ at_pcballoc(struct socket *so) MALLOC(ddp, struct ddpcb *, sizeof *ddp, M_PCB, M_WAITOK | M_ZERO); ddp->ddp_lsat.sat_port = ATADDR_ANYPORT; - ddp->ddp_next = ddpcb; + ddp->ddp_next = ddpcb_list; ddp->ddp_prev = NULL; ddp->ddp_pprev = NULL; ddp->ddp_pnext = NULL; - if (ddpcb != NULL) { - ddpcb->ddp_prev = ddp; + if (ddpcb_list != NULL) { + ddpcb_list->ddp_prev = ddp; } - ddpcb = ddp; + ddpcb_list = ddp; ddp->ddp_socket = so; so->so_pcb = (caddr_t)ddp; @@ -276,7 +276,7 @@ at_pcbdetach(struct socket *so, struct ddpcb *ddp) if (ddp->ddp_prev) { ddp->ddp_prev->ddp_next = ddp->ddp_next; } else { - ddpcb = ddp->ddp_next; + ddpcb_list = ddp->ddp_next; } if (ddp->ddp_next) { ddp->ddp_next->ddp_prev = ddp->ddp_prev; diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c index b8f68aa..f11be07b 100644 --- a/sys/netatalk/ddp_usrreq.c +++ b/sys/netatalk/ddp_usrreq.c @@ -223,7 +223,7 @@ ddp_clean(void) { struct ddpcb *ddp; - for (ddp = ddpcb; ddp; ddp = ddp->ddp_next) { + for (ddp = ddpcb_list; ddp != NULL; ddp = ddp->ddp_next) { at_pcbdetach(ddp->ddp_socket, ddp); } } diff --git a/sys/netatalk/ddp_var.h b/sys/netatalk/ddp_var.h index d44c84b..1e74381 100644 --- a/sys/netatalk/ddp_var.h +++ b/sys/netatalk/ddp_var.h @@ -32,7 +32,7 @@ struct ddpstat { #ifdef _KERNEL extern int ddp_cksum; -extern struct ddpcb *ddpcb; +extern struct ddpcb *ddpcb_list; extern struct pr_usrreqs ddp_usrreqs; #endif #endif /* _NETATALK_DDP_VAR_H_ */ |