From: Alan T. DeKok Date: Fri, 8 Apr 2022 17:32:17 +0000 (-0400) Subject: dcursor.c is only for testing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e786be70d49bb63b5458cdb64c3f886595b86e4;p=thirdparty%2Ffreeradius-server.git dcursor.c is only for testing --- diff --git a/src/lib/util/dcursor.c b/src/lib/util/dcursor.c index b54fca9beb..c1c2a1178f 100644 --- a/src/lib/util/dcursor.c +++ b/src/lib/util/dcursor.c @@ -31,6 +31,8 @@ RCSID("$Id$") #include #include +static void *fr_dcursor_intersect_next(fr_dcursor_t *a, fr_dcursor_t *b); + /** Return the first item matching the iterator in cursor a and cursor b * * If a and b are not currently set to the same item, b will be reset, @@ -44,7 +46,7 @@ RCSID("$Id$") * * @hidecallergraph */ -void *fr_dcursor_intersect_head(fr_dcursor_t *a, fr_dcursor_t *b) +static void *fr_dcursor_intersect_head(fr_dcursor_t *a, fr_dcursor_t *b) { void *a_item, *b_item; @@ -73,7 +75,7 @@ void *fr_dcursor_intersect_head(fr_dcursor_t *a, fr_dcursor_t *b) * * @hidecallergraph */ -void *fr_dcursor_intersect_next(fr_dcursor_t *a, fr_dcursor_t *b) +static void *fr_dcursor_intersect_next(fr_dcursor_t *a, fr_dcursor_t *b) { void *a_next, *b_next; diff --git a/src/lib/util/dcursor.h b/src/lib/util/dcursor.h index 8a05b0096c..a1e0bffdd1 100644 --- a/src/lib/util/dcursor.h +++ b/src/lib/util/dcursor.h @@ -554,12 +554,6 @@ static inline void *fr_dcursor_filter_current(fr_dcursor_t *cursor, fr_dcursor_e return item; } -/** @hidecallergraph */ -void *fr_dcursor_intersect_head(fr_dcursor_t *a, fr_dcursor_t *b) CC_HINT(nonnull); - -/** @hidecallergraph */ -void *fr_dcursor_intersect_next(fr_dcursor_t *a, fr_dcursor_t *b) CC_HINT(nonnull); - /** Replace the current item * * After replacing the current item, the cursor will be rewound, diff --git a/src/lib/util/libfreeradius-util.mk b/src/lib/util/libfreeradius-util.mk index 1ccfa4a0a8..34ceba5e96 100644 --- a/src/lib/util/libfreeradius-util.mk +++ b/src/lib/util/libfreeradius-util.mk @@ -14,7 +14,6 @@ SOURCES := \ cap.c \ cursor.c \ dbuff.c \ - dcursor.c \ debug.c \ dict_ext.c \ dict_fixup.c \