]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Comment corrections
authorNick Porter <nick@portercomputing.co.uk>
Mon, 6 Jan 2025 12:08:22 +0000 (12:08 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Tue, 7 Jan 2025 14:20:32 +0000 (14:20 +0000)
src/lib/server/cf_util.c

index 18813dfcc1e0b7c75f27fd3845ca8b3dfda5acdd..2c459e7b24cb78eac9c80937a12345602d08c1e8 100644 (file)
@@ -1390,11 +1390,11 @@ bool cf_pair_is_parsed(CONF_PAIR *cp)
        return cp->parsed;
 }
 
-/** Return the next child that's a #CONF_PAIR
+/** Return the first child that's a #CONF_PAIR
  *
  * @param[in] cs       to return children from.
  * @return
- *     - The next #CONF_ITEM that's a child of cs and a CONF_PAIR.
+ *     - The first #CONF_ITEM that's a child of cs and a CONF_PAIR.
  *     - NULL if no #CONF_ITEM matches that criteria.
  */
 CONF_PAIR *cf_pair_first(CONF_SECTION const *cs)
@@ -1415,12 +1415,12 @@ CONF_PAIR *cf_pair_next(CONF_SECTION const *cs, CONF_PAIR const *curr)
        return cf_item_to_pair(cf_next(cf_section_to_item(cs), cf_pair_to_item(curr), CONF_ITEM_PAIR));
 }
 
-/** Return the next child that's a #CONF_PAIR
+/** Return the previous child that's a #CONF_PAIR
  *
  * @param[in] cs       to return children from.
  * @param[in] curr     child to start searching from.
  * @return
- *     - The next #CONF_ITEM that's a child of cs and a CONF_PAIR.
+ *     - The previous #CONF_ITEM that's a child of cs and a CONF_PAIR.
  *     - NULL if no #CONF_ITEM matches that criteria.
  */
 CONF_PAIR *cf_pair_prev(CONF_SECTION const *cs, CONF_PAIR const *curr)