diff --git a/authd/authd.c b/authd/authd.c index 999258cae..298d3c4f7 100644 --- a/authd/authd.c +++ b/authd/authd.c @@ -27,17 +27,17 @@ static void handle_reload(int parc, char *parv[]); static void handle_stat(int parc, char *parv[]); rb_helper *authd_helper = NULL; -authd_cmd_handler authd_cmd_handlers[255] = { +authd_cmd_handler authd_cmd_handlers[256] = { ['C'] = handle_reload, ['D'] = resolve_dns, ['S'] = handle_stat, }; -authd_stat_handler authd_stat_handlers[255] = { +authd_stat_handler authd_stat_handlers[256] = { ['D'] = enumerate_nameservers, }; -authd_reload_handler authd_reload_handlers[255] = { +authd_reload_handler authd_reload_handlers[256] = { ['D'] = reload_nameservers, }; diff --git a/authd/authd.h b/authd/authd.h index 8c731468a..771f797af 100644 --- a/authd/authd.h +++ b/authd/authd.h @@ -33,8 +33,8 @@ typedef void (*authd_cmd_handler)(int parc, char *parv[]); typedef void (*authd_stat_handler)(const char *rid, const char letter); typedef void (*authd_reload_handler)(const char letter); -extern authd_cmd_handler authd_cmd_handlers[255]; -extern authd_stat_handler authd_stat_handlers[255]; -extern authd_reload_handler authd_reload_handlers[255]; +extern authd_cmd_handler authd_cmd_handlers[256]; +extern authd_stat_handler authd_stat_handlers[256]; +extern authd_reload_handler authd_reload_handlers[256]; #endif diff --git a/modules/m_stats.c b/modules/m_stats.c index b0dbc75cc..ed51ac13d 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -133,7 +133,7 @@ static void stats_capability(struct Client *); * C initalisers so we don't have to iterate anymore. * --Elizafox */ -static struct stats_cmd stats_cmd_table[255] = { +static struct stats_cmd stats_cmd_table[256] = { /* letter function need_oper need_admin */ ['a'] = { stats_dns_servers, 1, 1, }, ['A'] = { stats_dns_servers, 1, 1, },