* may be a CONF_SECTION containing action specifiers like "notfound = return"
* or a simple CONF_PAIR, in which case the default actions are used. */
modcallable *compile_modsingle(int component, CONF_ITEM *ci,
- const char *filename, char **modname);
+ const char *filename, const char **modname);
/* Add an entry to the end of a modgroup, creating it first if necessary */
void add_to_modcallable(modcallable **parent, modcallable *this,
static modcallable *do_compile_modsingle(int component, CONF_ITEM *ci,
const char *filename, int grouptype,
- char **modname)
+ const char **modname)
{
int lineno;
const char *modrefname;
sanity_check(component, this, csingle->lineno, filename);
single->modinst = this;
- *modname = this->entry->name;
+ *modname = this->entry->module->name;
return csingle;
}
modcallable *compile_modsingle(int component, CONF_ITEM *ci,
- const char *filename, char **modname)
+ const char *filename, const char **modname)
{
return do_compile_modsingle(component, ci, filename,
GROUPTYPE_SIMPLEGROUP, modname);
/* ...or a module instance with some actions
* specified. */
modcallable *single;
- char *junk;
+ const char *junk;
single = do_compile_modsingle(component,
cf_sectiontoitem(scs), filename,
* actions specified... */
if(value[0]==0) {
modcallable *single;
- char *junk;
+ const char *junk;
single = do_compile_modsingle(component,
cf_pairtoitem(cp), filename,