1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

jabber.c: removed explicit type conversion

According to the C99 standard integer type will be converted to real
floating type before the comparison.
This commit is contained in:
Dmitry Podgorny 2013-01-07 18:54:07 +02:00
parent c341468c92
commit d533fc9595

View File

@ -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);
}