mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed types of presence variables to resource_presence_type (avoid useless and implicit casts)
This commit is contained in:
parent
c3fbaf8b2a
commit
7127a934c7
@ -261,7 +261,7 @@ _presence_join_room(Jid *jid)
|
|||||||
log_debug("Sending room join presence to: %s", jid->fulljid);
|
log_debug("Sending room join presence to: %s", jid->fulljid);
|
||||||
xmpp_ctx_t *ctx = connection_get_ctx();
|
xmpp_ctx_t *ctx = connection_get_ctx();
|
||||||
xmpp_conn_t *conn = connection_get_conn();
|
xmpp_conn_t *conn = connection_get_conn();
|
||||||
contact_presence_t presence_type =
|
resource_presence_t presence_type =
|
||||||
accounts_get_last_presence(jabber_get_account_name());
|
accounts_get_last_presence(jabber_get_account_name());
|
||||||
const char *show = stanza_get_presence_string_from_type(presence_type);
|
const char *show = stanza_get_presence_string_from_type(presence_type);
|
||||||
char *status = jabber_get_presence_message();
|
char *status = jabber_get_presence_message();
|
||||||
@ -289,7 +289,7 @@ _presence_change_room_nick(const char * const room, const char * const nick)
|
|||||||
log_debug("Sending room nickname change to: %s, nick: %s", room, nick);
|
log_debug("Sending room nickname change to: %s, nick: %s", room, nick);
|
||||||
xmpp_ctx_t *ctx = connection_get_ctx();
|
xmpp_ctx_t *ctx = connection_get_ctx();
|
||||||
xmpp_conn_t *conn = connection_get_conn();
|
xmpp_conn_t *conn = connection_get_conn();
|
||||||
contact_presence_t presence_type =
|
resource_presence_t presence_type =
|
||||||
accounts_get_last_presence(jabber_get_account_name());
|
accounts_get_last_presence(jabber_get_account_name());
|
||||||
const char *show = stanza_get_presence_string_from_type(presence_type);
|
const char *show = stanza_get_presence_string_from_type(presence_type);
|
||||||
char *status = jabber_get_presence_message();
|
char *status = jabber_get_presence_message();
|
||||||
|
@ -297,7 +297,7 @@ _roster_handle_result(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
|
|||||||
item = xmpp_stanza_get_next(item);
|
item = xmpp_stanza_get_next(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
contact_presence_t conn_presence =
|
resource_presence_t conn_presence =
|
||||||
accounts_get_login_presence(jabber_get_account_name());
|
accounts_get_login_presence(jabber_get_account_name());
|
||||||
presence_update(conn_presence, NULL, 0);
|
presence_update(conn_presence, NULL, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user