mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
relay: add cast from time_t to long (fix warning under FreeBSD)
This commit is contained in:
@@ -241,7 +241,7 @@ relay_weechat_msg_add_time (struct t_relay_weechat_msg *msg, time_t time)
|
||||
char str_time[128];
|
||||
unsigned char length;
|
||||
|
||||
snprintf (str_time, sizeof (str_time), "%ld", time);
|
||||
snprintf (str_time, sizeof (str_time), "%ld", (long)time);
|
||||
length = strlen (str_time);
|
||||
relay_weechat_msg_add_bytes (msg, &length, 1);
|
||||
relay_weechat_msg_add_bytes (msg, str_time, length);
|
||||
|
||||
Reference in New Issue
Block a user