summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthib <thib@openbsd.org>2009-07-26 12:59:16 +0000
committerthib <thib@openbsd.org>2009-07-26 12:59:16 +0000
commit9154792034ac12c3553b0fce37dd3dd766b6b6cc (patch)
treed352a4f6bd40dad03ae44a3c97f560e496cf3092
parentMake all messages sent between the client and server fixed size. (diff)
downloadwireguard-openbsd-9154792034ac12c3553b0fce37dd3dd766b6b6cc.tar.xz
wireguard-openbsd-9154792034ac12c3553b0fce37dd3dd766b6b6cc.zip
no need to cast the return value of m_freem() to void
as its a void function. ok claudio@
-rw-r--r--sys/netinet/in_pcb.c4
-rw-r--r--sys/netinet6/icmp6.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 2a0cf48040f..8e68b43cb5d 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.105 2009/06/05 00:05:22 claudio Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.106 2009/07/26 12:59:16 thib Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -480,7 +480,7 @@ in_pcbdetach(v)
so->so_pcb = 0;
sofree(so);
if (inp->inp_options)
- (void)m_freem(inp->inp_options);
+ m_freem(inp->inp_options);
if (inp->inp_route.ro_rt)
rtfree(inp->inp_route.ro_rt);
#ifdef INET6
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 7453fe1e7b0..15fbdc608ce 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.105 2009/06/05 00:05:22 claudio Exp $ */
+/* $OpenBSD: icmp6.c,v 1.106 2009/07/26 12:59:17 thib Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -2680,7 +2680,7 @@ icmp6_ctloutput(int op, struct socket *so, int level, int optname,
break;
}
if (m)
- (void)m_freem(m);
+ m_freem(m);
break;
case PRCO_GETOPT: