diff --git a/authd/provider.c b/authd/provider.c index 28c4088a..57aa963d 100644 --- a/authd/provider.c +++ b/authd/provider.c @@ -136,7 +136,7 @@ load_provider(struct auth_provider *provider) } if(provider->stats_handler.letter != '\0') - authd_stat_handlers[provider->stats_handler.letter] = provider->stats_handler.handler; + authd_stat_handlers[(unsigned char)provider->stats_handler.letter] = provider->stats_handler.handler; if(provider->init != NULL) provider->init(); @@ -156,7 +156,7 @@ unload_provider(struct auth_provider *provider) } if(provider->stats_handler.letter != '\0') - authd_stat_handlers[provider->stats_handler.letter] = NULL; + authd_stat_handlers[(unsigned char)provider->stats_handler.letter] = NULL; if(provider->destroy != NULL) provider->destroy(); diff --git a/ircd/authproc.c b/ircd/authproc.c index 77ef669f..80a1cf75 100644 --- a/ircd/authproc.c +++ b/ircd/authproc.c @@ -284,7 +284,7 @@ parse_authd_reply(rb_helper * helper) struct authd_cb *cmd; parc = rb_string_to_array(buf, parv, MAXPARA+1); - cmd = &authd_cmd_tab[*parv[0]]; + cmd = &authd_cmd_tab[(unsigned char)*parv[0]]; if(cmd->fn != NULL) { if(cmd->min_parc > parc) diff --git a/wsockd/wsockd.c b/wsockd/wsockd.c index 1ab3120c..048f6f4b 100644 --- a/wsockd/wsockd.c +++ b/wsockd/wsockd.c @@ -731,7 +731,7 @@ conn_mod_read_cb(rb_fde_t *fd, void *data) length = rb_read(fd, inbuf, sizeof(inbuf)); - if (length < 0) + if (length < 0) { if (rb_ignore_errno(errno)) {