summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/mbuf.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-08-26 06:37:53 +0000
committerbrian <brian@FreeBSD.org>1999-08-26 06:37:53 +0000
commit945ebc8846bc31c53d4f255c630d8c87c69bd995 (patch)
tree790b0da7b104eaa7a50225833cb6879e271e2b12 /usr.sbin/ppp/mbuf.c
parent8a53007bfd94ea9948a27f4f1a1bf2cb6021306f (diff)
downloadFreeBSD-src-945ebc8846bc31c53d4f255c630d8c87c69bd995.zip
FreeBSD-src-945ebc8846bc31c53d4f255c630d8c87c69bd995.tar.gz
Aligh mbufs to sizeof(long), not 4
Diffstat (limited to 'usr.sbin/ppp/mbuf.c')
-rw-r--r--usr.sbin/ppp/mbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c
index 263ed11..9f5d4ae 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 <sys/types.h>
@@ -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;
}
OpenPOWER on IntegriCloud