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:
parent
c341468c92
commit
d533fc9595
@ -217,7 +217,7 @@ jabber_process_events(void)
|
|||||||
} else if (prefs_get_reconnect() != 0) {
|
} else if (prefs_get_reconnect() != 0) {
|
||||||
if ((jabber_conn.conn_status == JABBER_DISCONNECTED) &&
|
if ((jabber_conn.conn_status == JABBER_DISCONNECTED) &&
|
||||||
(reconnect_timer != NULL)) {
|
(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);
|
log_debug("Attempting reconnect as %s", saved_user);
|
||||||
jabber_connect(saved_user, saved_password, saved_altdomain);
|
jabber_connect(saved_user, saved_password, saved_altdomain);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user