From d88cc6469042c405baedcb17b7058f99c72287c2 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 9 Nov 2018 14:14:33 +0000 Subject: M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers for m_leadingspace() and m_trailingspace(). Convert all callers to call directly the functions and remove the defines. OK krw@, mpi@ --- sys/netinet6/ip6_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6/ip6_input.c') diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 527a8f70298..310e53b4257 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.215 2018/05/21 15:52:22 bluhm Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.216 2018/11/09 14:14:32 claudio Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -1180,7 +1180,7 @@ ip6_pullexthdr(struct mbuf *m, size_t off, int nxt) return NULL; n->m_len = 0; - if (elen >= M_TRAILINGSPACE(n)) { + if (elen >= m_trailingspace(n)) { m_free(n); return NULL; } -- cgit v1.2.3