aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-01-28 17:25:50 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-07-05 09:46:11 +0000
commita259db87edfe054f51615d7bd08464c575027738 (patch)
treef603b79e0868058bfc1fc40381a2fa17f895c67c
parentdc42a0503bc97fbf56036458b5616185e0abda37 (diff)
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 (cherry picked from commit 9a0a48b12d3d85f0f00b99439e6a8779f5f1abb6)
-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 97983ea1f58a..08e206b93511 100644
--- a/usr.sbin/pkg/config.c
+++ b/usr.sbin/pkg/config.c
@@ -47,8 +47,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;