From ada4257f2ec59b4fff97600cc15dbd3630cdb1f7 Mon Sep 17 00:00:00 2001 From: angelos Date: Fri, 25 Apr 1997 01:19:20 +0000 Subject: [PATCH] 64bit cleanup. --- sys/net/encap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/encap.c b/sys/net/encap.c index 8f93473d0a6..1930cb2287a 100644 --- a/sys/net/encap.c +++ b/sys/net/encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: encap.c,v 1.2 1997/02/24 13:33:56 niklas Exp $ */ +/* $OpenBSD: encap.c,v 1.3 1997/04/25 01:19:20 angelos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -147,8 +147,8 @@ encap_output(m, va_alist) so = va_arg(ap, struct socket *); va_end(ap); - if ((m == 0) || ((m->m_len < sizeof(long)) && - (m = m_pullup(m, sizeof(long))) == 0)) + if ((m == 0) || ((m->m_len < sizeof(int32_t)) && + (m = m_pullup(m, sizeof(int32_t))) == 0)) return ENOBUFS; if ((m->m_flags & M_PKTHDR) == 0) -- 2.20.1