Fix various printf arg types.
This commit is contained in:
parent
29c451d0ce
commit
77910830e3
6 changed files with 10 additions and 9 deletions
|
@ -43,7 +43,7 @@
|
|||
#define NUMERIC_STR_200 "Link %s %s %s"
|
||||
#define NUMERIC_STR_201 "Try. %s %s"
|
||||
#define NUMERIC_STR_202 "H.S. %s %s"
|
||||
#define NUMERIC_STR_203 "???? %s %s (%s) %d"
|
||||
#define NUMERIC_STR_203 "???? %s %s (%s) %lu"
|
||||
#define NUMERIC_STR_204 "Oper %s %s (%s) %lu %lu"
|
||||
#define NUMERIC_STR_205 "User %s %s (%s) %lu %lu"
|
||||
#define NUMERIC_STR_206 "Serv %s %dS %dC %s %s!%s@%s %lu"
|
||||
|
@ -94,7 +94,7 @@
|
|||
#define NUMERIC_STR_313 "%s :%s"
|
||||
#define NUMERIC_STR_314 ":%s 314 %s %s %s %s * :%s"
|
||||
#define NUMERIC_STR_315 ":%s 315 %s %s :End of /WHO list."
|
||||
#define NUMERIC_STR_317 "%s %d %d :seconds idle, signon time"
|
||||
#define NUMERIC_STR_317 "%s %ld %lu :seconds idle, signon time"
|
||||
#define NUMERIC_STR_318 "%s :End of /WHOIS list."
|
||||
#define NUMERIC_STR_319 ":%s 319 %s %s :"
|
||||
#define NUMERIC_STR_321 ":%s 321 %s Channel :Users Name"
|
||||
|
|
|
@ -977,8 +977,8 @@ stats_uptime (struct Client *source_p)
|
|||
now = rb_current_time() - startup_time;
|
||||
sendto_one_numeric(source_p, RPL_STATSUPTIME,
|
||||
form_str (RPL_STATSUPTIME),
|
||||
now / 86400, (now / 3600) % 24,
|
||||
(now / 60) % 60, now % 60);
|
||||
(int)(now / 86400), (int)((now / 3600) % 24),
|
||||
(int)((now / 60) % 60), (int)(now % 60));
|
||||
sendto_one_numeric(source_p, RPL_STATSCONN,
|
||||
form_str (RPL_STATSCONN),
|
||||
MaxConnectionCount, MaxClientCount,
|
||||
|
|
|
@ -374,7 +374,7 @@ report_this_status(struct Client *source_p, struct Client *target_p)
|
|||
sendto_one_numeric(source_p, RPL_TRACEUNKNOWN,
|
||||
form_str(RPL_TRACEUNKNOWN),
|
||||
class_name, name, ip,
|
||||
rb_current_time() - target_p->localClient->firsttime);
|
||||
(unsigned long)(rb_current_time() - target_p->localClient->firsttime));
|
||||
cnt++;
|
||||
break;
|
||||
|
||||
|
|
|
@ -363,8 +363,8 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
|||
|
||||
sendto_one_numeric(source_p, RPL_WHOISIDLE, form_str(RPL_WHOISIDLE),
|
||||
target_p->name,
|
||||
rb_current_time() - target_p->localClient->last,
|
||||
target_p->localClient->firsttime);
|
||||
(long)(rb_current_time() - target_p->localClient->last),
|
||||
(unsigned long)target_p->localClient->firsttime);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -482,7 +482,7 @@ report_messages(struct Client *source_p)
|
|||
s_assert(amsg->name != NULL);
|
||||
sendto_one_numeric(source_p, RPL_STATSCOMMANDS,
|
||||
form_str(RPL_STATSCOMMANDS),
|
||||
amsg->name, amsg->hits, 0, 0);
|
||||
amsg->name, amsg->hits, 0L, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -158,7 +158,8 @@ show_lusers(struct Client *source_p)
|
|||
|
||||
if(rb_dlink_list_length(&oper_list) > 0)
|
||||
sendto_one_numeric(source_p, RPL_LUSEROP,
|
||||
form_str(RPL_LUSEROP), rb_dlink_list_length(&oper_list));
|
||||
form_str(RPL_LUSEROP),
|
||||
(int)rb_dlink_list_length(&oper_list));
|
||||
|
||||
if(rb_dlink_list_length(&unknown_list) > 0)
|
||||
sendto_one_numeric(source_p, RPL_LUSERUNKNOWN,
|
||||
|
|
Loading…
Reference in a new issue