about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-01-07 18:54:07 +0200
committerDmitry Podgorny <pasis.ua@gmail.com>2013-01-07 18:54:07 +0200
commitd533fc95953298c7c186d1eab83a78f9989772ef (patch)
treec4f3a772603eb6c6cfdf023607c76cf9203dfc5a
parentc341468c92778f9997b33e547ad4ef974ed0e3c1 (diff)
downloadprofani-tty-d533fc95953298c7c186d1eab83a78f9989772ef.tar.gz
jabber.c: removed explicit type conversion
According to the C99 standard integer type will be converted to real
floating type before the comparison.
-rw-r--r--src/jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jabber.c b/src/jabber.c
index 65ed30df..9e44bb89 100644
--- a/src/jabber.c
+++ b/src/jabber.c
@@ -217,7 +217,7 @@ jabber_process_events(void)
     } else if (prefs_get_reconnect() != 0) {
         if ((jabber_conn.conn_status == JABBER_DISCONNECTED) &&
             (reconnect_timer != NULL)) {
-            if (g_timer_elapsed(reconnect_timer, NULL) > (prefs_get_reconnect() * 1.0)) {
+            if (g_timer_elapsed(reconnect_timer, NULL) > prefs_get_reconnect()) {
                 log_debug("Attempting reconnect as %s", saved_user);
                 jabber_connect(saved_user, saved_password, saved_altdomain);
             }