summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-08-16 11:50:01 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-08-16 11:50:01 +0200
commit4de5627db266e1d1e602226fc0596ff775633f76 (patch)
tree7a5e0116d642a781252d06a8a1951d630f6cee0b
parentab8ea0f3cbbc081cb2160e94b4129e15e2e6cd5b (diff)
downloadweechat-4de5627db266e1d1e602226fc0596ff775633f76.zip
irc: remove unneeded variable "seconds"
-rw-r--r--src/plugins/irc/irc-ctcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c
index 4a2d298fb..a3c180c0e 100644
--- a/src/plugins/irc/irc-ctcp.c
+++ b/src/plugins/irc/irc-ctcp.c
@@ -155,7 +155,6 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date,
char *pos_end, *pos_space, *pos_args, *pos_usec;
struct timeval tv;
long sec1, usec1, sec2, usec2, difftime;
- float seconds;
while (arguments && arguments[0])
{
@@ -187,7 +186,6 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date,
difftime = ((sec2 * 1000000) + usec2) -
((sec1 * 1000000) + usec1);
- seconds = (float)difftime / 1000000.0;
weechat_printf_date_tags (
irc_msgbuffer_get_target_buffer (server, nick, NULL,
"ctcp", NULL),
@@ -202,7 +200,7 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date,
IRC_COLOR_CHAT_CHANNEL,
arguments + 1,
IRC_COLOR_RESET,
- seconds);
+ (float)difftime / 1000000.0);
pos_usec[0] = ' ';
}