diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-29 06:46:01 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-05-29 06:46:01 +0000 |
commit | 2ab3467c05faf7e9f2fd8daef5e4bbafd4e0c51a (patch) | |
tree | 5d8e61b23e30d081b864a1771b4b4e2a19daafc1 /src | |
parent | 37d74c4941f5f3da39cc275afbf28edd896b1413 (diff) | |
download | weechat-2ab3467c05faf7e9f2fd8daef5e4bbafd4e0c51a.zip |
Added cast for away time display (to prevent problems with *BSD, where time_t is int and not long int)
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc-send.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c index f0610d8a6..002747b5a 100644 --- a/src/irc/irc-send.c +++ b/src/irc/irc-send.c @@ -120,9 +120,9 @@ irc_cmd_send_away (t_irc_server *server, char *arguments) { snprintf (buffer, sizeof (buffer), "is back (gone %.2ld:%.2ld:%.2ld)", - elapsed / 3600, - (elapsed / 60) % 60, - elapsed % 60); + (long int)(elapsed / 3600), + (long int)((elapsed / 60) % 60), + (long int)(elapsed % 60)); irc_send_me_all_channels (ptr_server, buffer); } } @@ -160,9 +160,9 @@ irc_cmd_send_away (t_irc_server *server, char *arguments) { snprintf (buffer, sizeof (buffer), "is back (gone %.2ld:%.2ld:%.2ld)", - elapsed / 3600, - (elapsed / 60) % 60, - elapsed % 60); + (long int)(elapsed / 3600), + (long int)((elapsed / 60) % 60), + (long int)(elapsed % 60)); irc_send_me_all_channels (server, buffer); } } |