From 2ab3467c05faf7e9f2fd8daef5e4bbafd4e0c51a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 29 May 2005 06:46:01 +0000 Subject: Added cast for away time display (to prevent problems with *BSD, where time_t is int and not long int) --- src/irc/irc-send.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/irc/irc-send.c') 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); } } -- cgit v1.2.3