]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update comments to clarify
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2022 17:31:59 +0000 (13:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Apr 2022 19:48:54 +0000 (15:48 -0400)
src/lib/util/pair.c

index cc615ed5feda333ba2c49a3250c04dd3ec4be7c3..01526ca4f0e67c0e624a4e7532dd7c6c12178835 100644 (file)
@@ -878,6 +878,9 @@ static int _pair_list_dcursor_insert(fr_dlist_head_t *list, void *to_insert, UNU
 
        tlist = fr_tlist_head_from_dlist(list);
 
+       /*
+        *      Mark the pair as inserted into the list.
+        */
        fr_pair_order_list_set_head(tlist, vp);
 
        PAIR_VERIFY(vp);
@@ -905,6 +908,9 @@ static int _pair_list_dcursor_remove(NDEBUG_UNUSED fr_dlist_head_t *list, void *
        fr_assert(vp->order_entry.entry.list_head == tlist);
 #endif
 
+       /*
+        *      Mark the pair as removed from the list.
+        */
        fr_pair_order_list_set_head(NULL, vp);
 
        PAIR_VERIFY(vp);