summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/ruby/weechat-ruby-api.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-05-14 14:53:02 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-05-14 14:53:02 +0200
commit3c7205aab118e1c394cdce7ae40e80b21195fc2f (patch)
tree2e2c21f9e3572e984583a5f9744a2fb79d35dc82 /src/plugins/scripts/ruby/weechat-ruby-api.c
parent673e4ad3bed15e26d6384103549127c56e7ce7b8 (diff)
downloadweechat-3c7205aab118e1c394cdce7ae40e80b21195fc2f.zip
Fix compilation warning with snprintf of time_t (long int) on FreeBSD
Diffstat (limited to 'src/plugins/scripts/ruby/weechat-ruby-api.c')
-rw-r--r--src/plugins/scripts/ruby/weechat-ruby-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scripts/ruby/weechat-ruby-api.c b/src/plugins/scripts/ruby/weechat-ruby-api.c
index 2439b1b36..2a3ad923e 100644
--- a/src/plugins/scripts/ruby/weechat-ruby-api.c
+++ b/src/plugins/scripts/ruby/weechat-ruby-api.c
@@ -2611,7 +2611,7 @@ weechat_ruby_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
script_callback = (struct t_script_callback *)data;
- snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", date);
+ snprintf (timebuffer, sizeof (timebuffer) - 1, "%ld", (long int)date);
ruby_argv[0] = script_ptr2str (buffer);
ruby_argv[1] = timebuffer;