From: pacman Date: Tue, 19 Dec 2000 05:32:00 +0000 (+0000) Subject: Export cf_sectiontoitem and cf_pairtoitem - the other two X-Git-Tag: release_0_1_0~339 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=e5629b72219bf386a49ae88f4ce3ee9d41a7e1fc;p=freeradius.git Export cf_sectiontoitem and cf_pairtoitem - the other two (cf_itemto*) were already exported, and there's no reason these should be different. --- diff --git a/src/include/conffile.h b/src/include/conffile.h index 30ed6fe..8815873 100644 --- a/src/include/conffile.h +++ b/src/include/conffile.h @@ -65,4 +65,6 @@ CONF_ITEM *cf_item_find_next(CONF_SECTION *section, CONF_ITEM *item); int cf_item_is_section(CONF_ITEM *item); CONF_PAIR *cf_itemtopair(CONF_ITEM *item); CONF_SECTION *cf_itemtosection(CONF_ITEM *item); +CONF_ITEM *cf_pairtoitem(CONF_PAIR *cp); +CONF_ITEM *cf_sectiontoitem(CONF_SECTION *cs); #endif /* _CONFFILE_H */ diff --git a/src/main/conffile.c b/src/main/conffile.c index 38ea527..16dd9c5 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -88,13 +88,13 @@ CONF_SECTION *cf_itemtosection(CONF_ITEM *ci) assert(ci->type == CONF_ITEM_SECTION); return (CONF_SECTION *)ci; } -static CONF_ITEM *cf_pairtoitem(CONF_PAIR *cp) +CONF_ITEM *cf_pairtoitem(CONF_PAIR *cp) { if (cp == NULL) return NULL; return (CONF_ITEM *)cp; } -static CONF_ITEM *cf_sectiontoitem(CONF_SECTION *cs) +CONF_ITEM *cf_sectiontoitem(CONF_SECTION *cs) { if (cs == NULL) return NULL;