From 8a78afe43d8c11af9e1d50ef438f0f193dcd12b3 Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 9 Apr 2008 23:34:34 +0400 Subject: [PATCH] Fixing time_t warnings --- modules/m_stats.c | 2 +- src/s_conf.c | 6 +++--- src/s_serv.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/m_stats.c b/modules/m_stats.c index fa823dc..33ddcd0 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -1002,7 +1002,7 @@ stats_tstats (struct Client *source_p) sp.is_sbr / 1024); sendto_one_numeric(source_p, RPL_STATSDEBUG, "T :time connected %lu %lu", - sp.is_cti, sp.is_sti); + (long int)sp.is_cti, (long int)sp.is_sti); } static void diff --git a/src/s_conf.c b/src/s_conf.c index d35eed4..f903330 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -1400,18 +1400,18 @@ write_confitem(KlineType type, struct Client *source_p, char *user, rb_snprintf(buffer, sizeof(buffer), "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%ld\n", user, host, reason, oper_reason, current_date, - get_oper_name(source_p), rb_current_time()); + get_oper_name(source_p), (long int)rb_current_time()); } else if(type == DLINE_TYPE) { rb_snprintf(buffer, sizeof(buffer), "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%ld\n", host, - reason, oper_reason, current_date, get_oper_name(source_p), rb_current_time()); + reason, oper_reason, current_date, get_oper_name(source_p), (long int)rb_current_time()); } else if(type == RESV_TYPE) { rb_snprintf(buffer, sizeof(buffer), "\"%s\",\"%s\",\"%s\",%ld\n", - host, reason, get_oper_name(source_p), rb_current_time()); + host, reason, get_oper_name(source_p), (long int)rb_current_time()); } if(fputs(buffer, out) == -1) diff --git a/src/s_serv.c b/src/s_serv.c index 397ae05..b96c183 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -947,7 +947,7 @@ server_estab(struct Client *client_p) { start_zlib_session(client_p); } - sendto_one(client_p, "SVINFO %d %d 0 :%ld", TS_CURRENT, TS_MIN, rb_current_time()); + sendto_one(client_p, "SVINFO %d %d 0 :%ld", TS_CURRENT, TS_MIN, (long int)rb_current_time()); client_p->servptr = &me;