]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More "const"
authorAlan T. DeKok <aland@freeradius.org>
Tue, 29 May 2012 15:11:20 +0000 (17:11 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 11 Jun 2012 11:13:34 +0000 (13:13 +0200)
src/include/conffile.h
src/main/conffile.c

index a187a469591711f28ba53d57a69e09413806bdcb..651a9cb6f5b95e564528e3ff756d1a58bd82ff2a 100644 (file)
@@ -81,18 +81,18 @@ VALUE_PAIR *cf_pairtovp(CONF_PAIR *pair);
 const char *cf_section_name1(const CONF_SECTION *);
 const char *cf_section_name2(const CONF_SECTION *);
 int dump_config(const CONF_SECTION *cs);
-CONF_SECTION *cf_subsection_find_next(CONF_SECTION *section,
+CONF_SECTION *cf_subsection_find_next(const CONF_SECTION *section,
                                      const CONF_SECTION *subsection,
                                      const char *name1);
-CONF_SECTION *cf_section_find_next(CONF_SECTION *section,
+CONF_SECTION *cf_section_find_next(const CONF_SECTION *section,
                                   const CONF_SECTION *subsection,
                                   const char *name1);
 int cf_section_lineno(const CONF_SECTION *section);
 int cf_pair_lineno(const CONF_PAIR *pair);
 const char *cf_pair_filename(const CONF_PAIR *pair);
 const char *cf_section_filename(const CONF_SECTION *section);
-CONF_ITEM *cf_item_find_next(CONF_SECTION *section, CONF_ITEM *item);
-CONF_SECTION *cf_item_parent(CONF_ITEM *ci);
+CONF_ITEM *cf_item_find_next(const CONF_SECTION *section, const CONF_ITEM *item);
+CONF_SECTION *cf_item_parent(const CONF_ITEM *ci);
 int cf_item_is_section(const CONF_ITEM *item);
 int cf_item_is_pair(const CONF_ITEM *item);
 CONF_PAIR *cf_itemtopair(CONF_ITEM *item);
index c26c83b935fdd5039089e39b6def5f26e25fb549..14a75a73454c2b116a9e8bda1c0e983e8e7e43bf 100644 (file)
@@ -2218,7 +2218,7 @@ CONF_SECTION *cf_section_sub_find_name2(const CONF_SECTION *cs,
  * name1 is NULL, any name1 matches.
  */
 
-CONF_SECTION *cf_subsection_find_next(CONF_SECTION *section,
+CONF_SECTION *cf_subsection_find_next(const CONF_SECTION *section,
                                      const CONF_SECTION *subsection,
                                      const char *name1)
 {
@@ -2255,7 +2255,7 @@ CONF_SECTION *cf_subsection_find_next(CONF_SECTION *section,
  * name1 is NULL, any name1 matches.
  */
 
-CONF_SECTION *cf_section_find_next(CONF_SECTION *section,
+CONF_SECTION *cf_section_find_next(const CONF_SECTION *section,
                                   const CONF_SECTION *subsection,
                                   const char *name1)
 {
@@ -2270,7 +2270,7 @@ CONF_SECTION *cf_section_find_next(CONF_SECTION *section,
  * Return the next item after a CONF_ITEM.
  */
 
-CONF_ITEM *cf_item_find_next(CONF_SECTION *section, CONF_ITEM *item)
+CONF_ITEM *cf_item_find_next(const CONF_SECTION *section, const CONF_ITEM *item)
 {
        if (!section) return NULL;
 
@@ -2286,7 +2286,7 @@ CONF_ITEM *cf_item_find_next(CONF_SECTION *section, CONF_ITEM *item)
        }
 }
 
-CONF_SECTION *cf_item_parent(CONF_ITEM *ci)
+CONF_SECTION *cf_item_parent(const CONF_ITEM *ci)
 {
        if (!ci) return NULL;