From 7c880acbfebf4e08ba4009c8708616fe6ff21ba0 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 27 Mar 2010 20:09:46 +0100 Subject: [PATCH] Fix various compiler warnings. --- modules/core/m_ban.c | 6 +++--- modules/m_kline.c | 2 +- src/s_conf.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/m_ban.c b/modules/core/m_ban.c index 8481282..d966edd 100644 --- a/modules/core/m_ban.c +++ b/modules/core/m_ban.c @@ -187,7 +187,7 @@ ms_ban(struct Client *client_p, struct Client *source_p, int parc, const char *p { sendto_realops_snomask(SNO_GENERAL, L_ALL, "Ignoring global %d min. %s from %s%s%s for [%s%s%s]: too few non-wildcard characters", - (hold - rb_current_time()) / 60, + (int)((hold - rb_current_time()) / 60), stype, IsServer(source_p) ? source_p->name : get_oper_name(source_p), strcmp(parv[7], "*") ? " on behalf of " : "", @@ -210,7 +210,7 @@ ms_ban(struct Client *client_p, struct Client *source_p, int parc, const char *p sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s added global %d min. %s%s%s for [%s%s%s] [%s]", IsServer(source_p) ? source_p->name : get_oper_name(source_p), - (hold - rb_current_time()) / 60, + (int)((hold - rb_current_time()) / 60), stype, strcmp(parv[7], "*") ? " from " : "", strcmp(parv[7], "*") ? parv[7] : "", @@ -220,7 +220,7 @@ ms_ban(struct Client *client_p, struct Client *source_p, int parc, const char *p parv[parc - 1]); ilog(L_KLINE, "%s %s %d %s%s%s %s", parv[1], IsServer(source_p) ? source_p->name : get_oper_name(source_p), - (hold - rb_current_time()) / 60, + (int)((hold - rb_current_time()) / 60), aconf->user ? aconf->user : "", aconf->user ? " " : "", aconf->host, diff --git a/modules/m_kline.c b/modules/m_kline.c index d6e22bc..89ba235 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -297,7 +297,7 @@ handle_remote_kline(struct Client *source_p, int tkline_time, ":Please include at least %d non-wildcard " "characters with the user@host", ConfigFileEntry.min_nonwildcard); - return 0; + return; } if(already_placed_kline(source_p, user, host, tkline_time)) diff --git a/src/s_conf.c b/src/s_conf.c index 768ae2f..5f91e6c 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -1330,7 +1330,7 @@ get_user_ban_reason(struct ConfItem *aconf) rb_snprintf(reasonbuf, sizeof reasonbuf, "Temporary %c-line %d min. - ", aconf->status == CONF_DLINE ? 'D' : 'K', - (aconf->hold - aconf->created) / 60); + (int)((aconf->hold - aconf->created) / 60)); else reasonbuf[0] = '\0'; if (aconf->passwd)