Cast time_t to long long when printing
This commit is contained in:
parent
12cee8ab78
commit
5c01fc8bd7
8 changed files with 14 additions and 14 deletions
|
@ -374,7 +374,7 @@ m_join(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
|
|||
sendto_one(source_p, form_str(RPL_TOPICWHOTIME),
|
||||
me.name, source_p->name, chptr->chname,
|
||||
chptr->topic_info,
|
||||
(unsigned long)chptr->topic_time);
|
||||
(long long)chptr->topic_time);
|
||||
}
|
||||
|
||||
channel_member_names(chptr, source_p, 1);
|
||||
|
|
|
@ -132,7 +132,7 @@ m_mode(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p
|
|||
operspy ? channel_modes(chptr, &me) : channel_modes(chptr, source_p));
|
||||
|
||||
sendto_one(source_p, form_str(RPL_CREATIONTIME),
|
||||
me.name, source_p->name, parv[1], chptr->channelts);
|
||||
me.name, source_p->name, parv[1], (long long)chptr->channelts);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -960,8 +960,8 @@ stats_usage (struct Client *source_p)
|
|||
(int) (rus.ru_stime.tv_sec % 60));
|
||||
sendto_one_numeric(source_p, RPL_STATSDEBUG,
|
||||
"R :RSS %ld ShMem %ld Data %ld Stack %ld",
|
||||
rus.ru_maxrss, (rus.ru_ixrss / rup),
|
||||
(rus.ru_idrss / rup), (rus.ru_isrss / rup));
|
||||
rus.ru_maxrss, (long)(rus.ru_ixrss / rup),
|
||||
(long)(rus.ru_idrss / rup), (long)(rus.ru_isrss / rup));
|
||||
sendto_one_numeric(source_p, RPL_STATSDEBUG,
|
||||
"R :Swaps %d Reclaims %d Faults %d",
|
||||
(int) rus.ru_nswap, (int) rus.ru_minflt, (int) rus.ru_majflt);
|
||||
|
|
|
@ -173,7 +173,7 @@ m_topic(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_
|
|||
sendto_one(source_p, form_str(RPL_TOPICWHOTIME),
|
||||
me.name, source_p->name, chptr->chname,
|
||||
chptr->topic_info,
|
||||
(unsigned long)chptr->topic_time);
|
||||
(long long)chptr->topic_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue