1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36:38 +02:00

core, irc: replace "long" by "long long" to store seconds in timeval structure

This commit is contained in:
Sébastien Helleu
2025-03-16 14:05:11 +01:00
parent 764b309e92
commit ca22e49041
3 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -253,7 +253,7 @@ irc_ctcp_display_reply_from_nick (struct t_irc_protocol_ctxt *ctxt,
{
char *dup_arguments, *ptr_args, *pos_end, *pos_space, *pos_args, *pos_usec;
struct timeval tv;
long sec1, usec1, sec2, usec2, difftime;
long long sec1, usec1, sec2, usec2, difftime;
dup_arguments = strdup (arguments);
if (!dup_arguments)
@@ -284,8 +284,8 @@ irc_ctcp_display_reply_from_nick (struct t_irc_protocol_ctxt *ctxt,
pos_usec[0] = '\0';
gettimeofday (&tv, NULL);
sec1 = atol (pos_args);
usec1 = atol (pos_usec + 1);
sec1 = atoll (pos_args);
usec1 = atoll (pos_usec + 1);
sec2 = tv.tv_sec;
usec2 = tv.tv_usec;