diff --git a/include/ircd/newconf.h b/include/ircd/newconf.h index d6c73557c..2f18bfc71 100644 --- a/include/ircd/newconf.h +++ b/include/ircd/newconf.h @@ -72,7 +72,7 @@ void newconf_init(void); int add_conf_item(const char *topconf, const char *name, int type, void (*func) (void *)); int remove_conf_item(const char *topconf, const char *name); int add_top_conf(const char *name, int (*sfunc) (struct TopConf *), int (*efunc) (struct TopConf *), struct ConfEntry *items); -int remove_top_conf(char *name); +int remove_top_conf(const char *name); struct TopConf *find_top_conf(const char *name); struct ConfEntry *find_conf_item(const struct TopConf *top, const char *name); diff --git a/ircd/newconf.c b/ircd/newconf.c index cc1a3caed..bfc29ee90 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -152,7 +152,7 @@ find_conf_item(const struct TopConf *top, const char *name) } int -remove_top_conf(char *name) +remove_top_conf(const char *name) { struct TopConf *tc; rb_dlink_node *ptr;