aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-08-26 06:37:53 +0000
committerBrian Somers <brian@FreeBSD.org>1999-08-26 06:37:53 +0000
commit6fd578c4351e4739d8a779cdd100d1b77c94830e (patch)
tree78a3e4e35be76afc3508c43ab3031b8790a36be2
parentcbc20d30a5c2453550c1dd33e1eb4391c0be96ff (diff)
downloadsrc-6fd578c4351e4739d8a779cdd100d1b77c94830e.tar.gz
src-6fd578c4351e4739d8a779cdd100d1b77c94830e.zip
Aligh mbufs to sizeof(long), not 4
Notes
Notes: svn path=/head/; revision=50393
-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 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 <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;
}