diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-17 11:05:38 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-17 11:05:38 +0200 |
commit | d5c4f054973743a2bacf2ea6086e489b33c728ec (patch) | |
tree | 359d5a8122c4187b8bf1bf57a4441f29b4818ebc /src | |
parent | 2485831d4aef6eded3d5efea3ef81ff3c1d87e00 (diff) | |
download | weechat-d5c4f054973743a2bacf2ea6086e489b33c728ec.zip |
relay: add cast from time_t to long (fix warning under FreeBSD)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/relay/weechat/relay-weechat-msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-msg.c b/src/plugins/relay/weechat/relay-weechat-msg.c index 91c05c30f..8994ac430 100644 --- a/src/plugins/relay/weechat/relay-weechat-msg.c +++ b/src/plugins/relay/weechat/relay-weechat-msg.c @@ -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); |