0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

Fixing time_t warnings

This commit is contained in:
Valery Yatsko 2008-04-09 23:34:34 +04:00
parent b3e9f8ebc2
commit 8982edb068
3 changed files with 5 additions and 5 deletions

View file

@ -1002,7 +1002,7 @@ stats_tstats (struct Client *source_p)
sp.is_sbr / 1024); sp.is_sbr / 1024);
sendto_one_numeric(source_p, RPL_STATSDEBUG, sendto_one_numeric(source_p, RPL_STATSDEBUG,
"T :time connected %lu %lu", "T :time connected %lu %lu",
sp.is_cti, sp.is_sti); (long int)sp.is_cti, (long int)sp.is_sti);
} }
static void static void

View file

@ -1400,18 +1400,18 @@ write_confitem(KlineType type, struct Client *source_p, char *user,
rb_snprintf(buffer, sizeof(buffer), rb_snprintf(buffer, sizeof(buffer),
"\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%ld\n", "\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%ld\n",
user, host, reason, oper_reason, current_date, 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) else if(type == DLINE_TYPE)
{ {
rb_snprintf(buffer, sizeof(buffer), rb_snprintf(buffer, sizeof(buffer),
"\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",%ld\n", host, "\"%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) else if(type == RESV_TYPE)
{ {
rb_snprintf(buffer, sizeof(buffer), "\"%s\",\"%s\",\"%s\",%ld\n", 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) if(fputs(buffer, out) == -1)

View file

@ -947,7 +947,7 @@ server_estab(struct Client *client_p)
{ {
start_zlib_session(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; client_p->servptr = &me;