From 6fd578c4351e4739d8a779cdd100d1b77c94830e Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 26 Aug 1999 06:37:53 +0000 Subject: [PATCH] Aligh mbufs to sizeof(long), not 4 --- usr.sbin/ppp/mbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index 263ed11b7625..9f5d4ae4a9b3 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: mbuf.c,v 1.28 1999/08/09 22:56:18 brian Exp $ + * $Id: mbuf.c,v 1.29 1999/08/19 18:15:50 brian Exp $ * */ #include @@ -300,7 +300,7 @@ mbuf_Contiguous(struct mbuf *bp) bp = nbp; } #ifndef __i386__ /* Do any other archs not care about alignment ? */ - else if ((bp->offset & 0x03) != 0) { + else if ((bp->offset & (sizeof(long) - 1)) != 0) { bcopy(MBUF_CTOP(bp), bp + 1, bp->cnt); bp->offset = 0; }