]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
dcursor.c is only for testing
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2022 17:32:17 +0000 (13:32 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2022 19:48:55 +0000 (15:48 -0400)
src/lib/util/dcursor.c
src/lib/util/dcursor.h
src/lib/util/libfreeradius-util.mk

index b54fca9beb8aca1564ba60ac5304ac4c59cf4c59..c1c2a1178f5a1fb067b1ade6fbb4779a4e737be0 100644 (file)
@@ -31,6 +31,8 @@ RCSID("$Id$")
 #include <freeradius-devel/util/dcursor.h>
 #include <freeradius-devel/util/pair.h>
 
+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;
 
index 8a05b0096cd52bab45c32291c5c7d68916bc8d5e..a1e0bffdd18ad60692eeb9cc8c01bc432f83159b 100644 (file)
@@ -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,
index 1ccfa4a0a8405c693386da3eb792a7573b4c77e6..34ceba5e96dd40589c880b3f637ac48d5251d24e 100644 (file)
@@ -14,7 +14,6 @@ SOURCES               := \
                   cap.c \
                   cursor.c \
                   dbuff.c \
-                  dcursor.c \
                   debug.c \
                   dict_ext.c \
                   dict_fixup.c \