From ffb2f6385027f502c40faa13aa08b6c88902f5de Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 15 Jul 2016 00:58:23 -0700 Subject: [PATCH] ircd: newconf: Fix const correctness. --- include/ircd/newconf.h | 2 +- ircd/newconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;