diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-04-02 18:27:48 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-04-02 18:27:48 +0000 |
commit | 90eedd27c3a97bd92f33625886a445649b095581 (patch) | |
tree | e466a34625f18500f67743a0d187c5dd5797da23 /sys/netinet6 | |
parent | 34b4957cdf0004f97087b7b2fad30c95f3a72100 (diff) |
Use macros sotoinpcb() and intotcpcb() instead of casts. Use NULL
instead of 0 for pointers. No binary change.
OK mpi@
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_divert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_divert.c b/sys/netinet6/ip6_divert.c index 328351ab8c9..0beac45ea8c 100644 --- a/sys/netinet6/ip6_divert.c +++ b/sys/netinet6/ip6_divert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_divert.c,v 1.9 2013/03/28 16:45:16 tedu Exp $ */ +/* $OpenBSD: ip6_divert.c,v 1.10 2013/04/02 18:27:47 bluhm Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -243,7 +243,7 @@ divert6_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *addr, error = soreserve(so, divert6_sendspace, divert6_recvspace); if (error) break; - ((struct inpcb *) so->so_pcb)->inp_flags |= INP_HDRINCL; + sotoinpcb(so)->inp_flags |= INP_HDRINCL; break; case PRU_DETACH: |