From c0e6f9b4f30a2815ffd1a69911a7d0e3d24bcfcd Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 29 May 1996 04:05:52 +0000 Subject: [PATCH] use 'ALIGN' from rather than generating a custom alignment expr --- lib/libpcap/gencode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index b04c951f9e66..2f4f24db028f 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $NetBSD: gencode.c,v 1.3 1996/05/26 23:50:37 cgd Exp $ */ +/* $NetBSD: gencode.c,v 1.4 1996/05/29 04:05:52 cgd Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994 @@ -25,7 +25,7 @@ static char rcsid[] = "@(#) Header: gencode.c,v 1.55 94/06/20 19:07:53 leres Exp (LBL)"; #endif -#include +#include #include #include @@ -163,8 +163,8 @@ newchunk(n) struct chunk *cp; int k, size; - /* XXX Round up to nearest "instruction." */ - n = (n + sizeof(int32_t) - 1) & ~(sizeof(int32_t) - 1); + /* XXX Round to structure boundary. */ + n = ALIGN(n); cp = &chunks[cur_chunk]; if (n > cp->n_left) {