summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-18 17:57:11 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-18 17:57:11 +0200
commit8f7f6729467fb4cd72e35386181b7a48fb1fad29 (patch)
treec057d0ea9c25a909e60ff419e06db3ea1ff5c8c9 /src
parent65d1450e2745be49a8535bffd092883126b78845 (diff)
downloadweechat-8f7f6729467fb4cd72e35386181b7a48fb1fad29.zip
irc: fix compilation warning under FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index 301276e79..5346df5ed 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -887,7 +887,7 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
{
gettimeofday (&tv, NULL);
snprintf (str_time, sizeof (str_time), "%ld %ld",
- tv.tv_sec, tv.tv_usec);
+ (long)tv.tv_sec, (long)tv.tv_usec);
irc_server_sendf (ptr_server, IRC_SERVER_SEND_OUTQ_PRIO_HIGH, NULL,
"PRIVMSG %s :\01PING %s\01",
argv[1], str_time);