Fix -Wformat errors found in ircd-ratbox.

We cannot use -Wformat meaningfully but ircd-ratbox trunk can.
This commit is contained in:
Jilles Tjoelker 2011-11-13 00:22:09 +01:00
parent a695b0e40e
commit 0cce01d388
8 changed files with 25 additions and 22 deletions

View file

@ -386,8 +386,8 @@ report_this_status(struct Client *source_p, struct Client *target_p)
sendto_one_numeric(source_p, tnumeric, form_str(tnumeric),
class_name, name,
show_ip(source_p, target_p) ? ip : empty_sockhost,
rb_current_time() - target_p->localClient->lasttime,
rb_current_time() - target_p->localClient->last);
(unsigned long)(rb_current_time() - target_p->localClient->lasttime),
(unsigned long)(rb_current_time() - target_p->localClient->last));
cnt++;
}
@ -403,7 +403,8 @@ report_this_status(struct Client *source_p, struct Client *target_p)
sendto_one_numeric(source_p, RPL_TRACESERVER, form_str(RPL_TRACESERVER),
class_name, servcount, usercount, name,
*(target_p->serv->by) ? target_p->serv->by : "*", "*",
me.name, rb_current_time() - target_p->localClient->lasttime);
me.name,
(unsigned long)(rb_current_time() - target_p->localClient->lasttime));
cnt++;
}
@ -411,8 +412,7 @@ report_this_status(struct Client *source_p, struct Client *target_p)
default: /* ...we actually shouldn't come here... --msa */
sendto_one_numeric(source_p, RPL_TRACENEWTYPE,
form_str(RPL_TRACENEWTYPE),
me.name, source_p->name, name);
form_str(RPL_TRACENEWTYPE), name);
cnt++;
break;
}