From 19b97477b91e677a28eb4284d0adba819b15c36c Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 29 Mar 1996 00:32:10 +0000 Subject: [PATCH] make this version of ROUNDUP() consistent with the others in this directory. (only makes a diff on the alpha.) --- sys/net/rtsock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 42bae0dbb719..b8cac5e40ca1 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.17 1996/02/13 22:00:52 christos Exp $ */ +/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* * Copyright (c) 1988, 1991, 1993 @@ -367,7 +367,7 @@ rt_setmetrics(which, in, out) } #define ROUNDUP(a) \ - ((a) > 0 ? (1 + (((a) - 1) | (sizeof(int32_t) - 1))) : sizeof(int32_t)) + ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) : sizeof(long)) #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) static void