diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-12-03 20:36:25 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2023-12-03 20:36:25 +0000 |
commit | 2b48add010076e6de9b90f2cc7f903839b23d613 (patch) | |
tree | 246aea6a58c263edb699b444f484dd600214a36d /sys/netinet6/in6_pcb.c | |
parent | 0de8fe1768c4f3213e45897dea6282984113ece3 (diff) |
Rename all in6p local variables to inp.
There exists no struct in6pcb in OpenBSD, this was an old kame idea.
Calling the local variable in6p does not make sense, it is actually
a struct inpcb. Also in6p is not used consistently in inet6 code.
Having the same convention for IPv4 and IPv6 is less confusing.
OK sashan@ mvs@
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 4ced92a948f..b0c30bfff4d 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.129 2023/12/03 20:24:17 bluhm Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.130 2023/12/03 20:36:24 bluhm Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -373,10 +373,10 @@ in6_setpeeraddr(struct inpcb *inp, struct mbuf *nam) int in6_sockaddr(struct socket *so, struct mbuf *nam) { - struct inpcb *in6p; + struct inpcb *inp; - in6p = sotoinpcb(so); - in6_setsockaddr(in6p, nam); + inp = sotoinpcb(so); + in6_setsockaddr(inp, nam); return (0); } @@ -384,10 +384,10 @@ in6_sockaddr(struct socket *so, struct mbuf *nam) int in6_peeraddr(struct socket *so, struct mbuf *nam) { - struct inpcb *in6p; + struct inpcb *inp; - in6p = sotoinpcb(so); - in6_setpeeraddr(in6p, nam); + inp = sotoinpcb(so); + in6_setpeeraddr(inp, nam); return (0); } |