diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-04-03 13:33:55 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-04-03 13:33:55 +0000 |
commit | d67aff8ec432c4f2d1e0c1acf831f238931c2429 (patch) | |
tree | 0e7eebbe527dc5fd1f35a85c1b0904a72115d6b2 /sys/netinet/in_pcb.h | |
parent | 4586157b3a5cbeff0a6e0878ab9a029cdd7f0704 (diff) | |
download | FreeBSD-src-d67aff8ec432c4f2d1e0c1acf831f238931c2429.zip FreeBSD-src-d67aff8ec432c4f2d1e0c1acf831f238931c2429.tar.gz |
Change inp_ppcb from caddr_t to void *, fix/remove associated related
casts.
Consistently use intotw() to cast inp_ppcb pointers to struct tcptw *
pointers.
Consistently use intotcpcb() to cast inp_ppcb pointers to struct tcpcb *
pointers.
Don't assign tp to the results to intotcpcb() during variable declation
at the top of functions, as that is before the asserts relating to
locking have been performed. Do this later in the function after
appropriate assertions have run to allow that operation to be conisdered
safe.
MFC after: 3 months
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r-- | sys/netinet/in_pcb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 1500c18..0b754db 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -117,7 +117,7 @@ struct inpcb { /* local and foreign ports, local and foreign addr */ struct in_conninfo inp_inc; - caddr_t inp_ppcb; /* pointer to per-protocol pcb */ + void *inp_ppcb; /* pointer to per-protocol pcb */ struct inpcbinfo *inp_pcbinfo; /* PCB list info */ struct socket *inp_socket; /* back pointer to socket */ /* list for this PCB's local port */ |