aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-01-28 17:25:50 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-05-05 08:17:19 +0000
commitc669cd841847766952492eff0566210d35ce93f9 (patch)
tree718d585c1e741cc1f9c8281db5421947af4e3edd
parent0543e10e950dd5c8b17cdb7cf60b9f95aece094a (diff)
downloadsrc-c669cd841847766952492eff0566210d35ce93f9.tar.gz
src-c669cd841847766952492eff0566210d35ce93f9.zip
usr.sbin/pkg: Don't re-define roundup2
The file already includes sys/param.h and should use that definition. I found this while testing D28332. Reviewed By: bapt Differential Revision: https://reviews.freebsd.org/D28331
-rw-r--r--usr.sbin/pkg/config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/pkg/config.c b/usr.sbin/pkg/config.c
index 69bdece6c1a9..68c3e7d63d1a 100644
--- a/usr.sbin/pkg/config.c
+++ b/usr.sbin/pkg/config.c
@@ -46,8 +46,6 @@ __FBSDID("$FreeBSD$");
#include "config.h"
-#define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */
-
struct config_value {
char *value;
STAILQ_ENTRY(config_value) next;