diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-01-09 19:57:02 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2024-01-09 19:57:02 +0000 |
commit | 333d11d91a0e9097fecc7fb5a3ecfb05d4d494be (patch) | |
tree | fa28633ed5eaf6544f15b1ba1b7f101e29e42711 /sys/netinet/in_pcb.c | |
parent | 953cfb08251588786a3fea82fb50bf2ec40e7c39 (diff) |
Convert some struct inpcb parameter to const pointer.
OK millert@
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 1d40a0c2d3e..5ac1e8d0a89 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.283 2024/01/01 22:16:51 bluhm Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.284 2024/01/09 19:57:00 bluhm Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -133,7 +133,7 @@ uint64_t in_pcblhash(struct inpcbtable *, u_int, u_short); struct inpcb *in_pcblookup_lock(struct inpcbtable *, struct in_addr, u_int, struct in_addr, u_int, u_int, int); -int in_pcbaddrisavail_lock(struct inpcb *, struct sockaddr_in *, int, +int in_pcbaddrisavail_lock(const struct inpcb *, struct sockaddr_in *, int, struct proc *, int); int in_pcbpickport(u_int16_t *, const void *, int, const struct inpcb *, struct proc *); @@ -365,8 +365,8 @@ in_pcbbind(struct inpcb *inp, struct mbuf *nam, struct proc *p) } int -in_pcbaddrisavail_lock(struct inpcb *inp, struct sockaddr_in *sin, int wild, - struct proc *p, int lock) +in_pcbaddrisavail_lock(const struct inpcb *inp, struct sockaddr_in *sin, + int wild, struct proc *p, int lock) { struct socket *so = inp->inp_socket; struct inpcbtable *table = inp->inp_table; @@ -436,8 +436,8 @@ in_pcbaddrisavail_lock(struct inpcb *inp, struct sockaddr_in *sin, int wild, } int -in_pcbaddrisavail(struct inpcb *inp, struct sockaddr_in *sin, int wild, - struct proc *p) +in_pcbaddrisavail(const struct inpcb *inp, struct sockaddr_in *sin, + int wild, struct proc *p) { return in_pcbaddrisavail_lock(inp, sin, wild, p, IN_PCBLOCK_GRAB); } @@ -962,7 +962,7 @@ in_pcbselsrc(struct in_addr *insrc, struct sockaddr_in *sin, { struct ip_moptions *mopts = inp->inp_moptions; struct route *ro = &inp->inp_route; - struct in_addr *laddr = &inp->inp_laddr; + const struct in_addr *laddr = &inp->inp_laddr; u_int rtableid = inp->inp_rtableid; struct sockaddr *ip4_source = NULL; |