Fix -Wformat errors found in ircd-ratbox.
We cannot use -Wformat meaningfully but ircd-ratbox trunk can.
This commit is contained in:
parent
a695b0e40e
commit
0cce01d388
8 changed files with 25 additions and 22 deletions
|
@ -363,7 +363,8 @@ m_join(struct Client *client_p, struct Client *source_p, int parc, const char *p
|
|||
|
||||
sendto_one(source_p, form_str(RPL_TOPICWHOTIME),
|
||||
me.name, source_p->name, chptr->chname,
|
||||
chptr->topic_info, chptr->topic_time);
|
||||
chptr->topic_info,
|
||||
(unsigned long)chptr->topic_time);
|
||||
}
|
||||
|
||||
channel_member_names(chptr, source_p, 1);
|
||||
|
|
|
@ -330,7 +330,7 @@ h_svc_stats(hook_data_int *data)
|
|||
{
|
||||
sendto_one_numeric(data->client, RPL_STATSULINE,
|
||||
form_str(RPL_STATSULINE),
|
||||
ptr->data, "*", "*", "s");
|
||||
(const char *)ptr->data, "*", "*", "s");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -149,14 +149,14 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch
|
|||
sendto_one(source_p, form_str(RPL_TESTLINE),
|
||||
me.name, source_p->name,
|
||||
'!',
|
||||
duration / 60,
|
||||
duration / 60L,
|
||||
host, "Reject cache");
|
||||
if(aconf == NULL &&
|
||||
(duration = is_throttle_ip((struct sockaddr *)&ip)))
|
||||
sendto_one(source_p, form_str(RPL_TESTLINE),
|
||||
me.name, source_p->name,
|
||||
'!',
|
||||
duration / 60,
|
||||
duration / 60L,
|
||||
host, "Throttled");
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,8 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
|
||||
sendto_one(source_p, form_str(RPL_TOPICWHOTIME),
|
||||
me.name, source_p->name, chptr->chname,
|
||||
chptr->topic_info, chptr->topic_time);
|
||||
chptr->topic_info,
|
||||
(unsigned long)chptr->topic_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -56,9 +56,9 @@ m_users(struct Client *client_p, struct Client *source_p, int parc, const char *
|
|||
{
|
||||
sendto_one_numeric(source_p, RPL_LOCALUSERS,
|
||||
form_str(RPL_LOCALUSERS),
|
||||
rb_dlink_list_length(&lclient_list),
|
||||
(int)rb_dlink_list_length(&lclient_list),
|
||||
Count.max_loc,
|
||||
rb_dlink_list_length(&lclient_list),
|
||||
(int)rb_dlink_list_length(&lclient_list),
|
||||
Count.max_loc);
|
||||
|
||||
sendto_one_numeric(source_p, RPL_GLOBALUSERS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue