diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-29 06:39:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-11-29 06:39:24 +0000 |
commit | 4b3eed2523fd7895e8d0eb497d3d00d0fbc294e6 (patch) | |
tree | 1fc77e9578672495357f8e0cb1cfb3e55af46b9e /usr.bin/netstat | |
parent | 1d10bcf1b200483de0412e5705bdf212e2ac86c0 (diff) |
local copy of roundup() means no more sys/param.h
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/if.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 1f8d0dec39e..d2b329ac54e 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.77 2021/01/16 17:42:52 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.78 2021/11/29 06:39:23 deraadt Exp $ */ /* $NetBSD: if.c,v 1.16.4.2 1996/06/07 21:46:46 thorpej Exp $ */ /* @@ -30,7 +30,6 @@ * SUCH DAMAGE. */ -#include <sys/param.h> /* roundup() */ #include <sys/types.h> #include <sys/ioctl.h> #include <sys/protosw.h> @@ -55,6 +54,8 @@ #include <unistd.h> #include <util.h> +#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) + #include "netstat.h" static void print_addr(struct sockaddr *, struct sockaddr **, struct if_data *); |