mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Fix some things regarding char*
vs. gchar*
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
parent
0e66cbe458
commit
64046bcdf3
@ -561,7 +561,7 @@ connection_disconnect(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
free(prof_identifier);
|
g_free(prof_identifier);
|
||||||
prof_identifier = NULL;
|
prof_identifier = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1126,7 +1126,7 @@ static void
|
|||||||
_compute_identifier(const char* barejid)
|
_compute_identifier(const char* barejid)
|
||||||
{
|
{
|
||||||
// in case of reconnect (lost connection)
|
// in case of reconnect (lost connection)
|
||||||
free(prof_identifier);
|
g_free(prof_identifier);
|
||||||
|
|
||||||
prof_identifier = g_compute_hmac_for_string(G_CHECKSUM_SHA256,
|
prof_identifier = g_compute_hmac_for_string(G_CHECKSUM_SHA256,
|
||||||
(guchar*)profanity_instance_id, strlen(profanity_instance_id),
|
(guchar*)profanity_instance_id, strlen(profanity_instance_id),
|
||||||
|
@ -1261,7 +1261,7 @@ _handle_muc_private_message(xmpp_stanza_t* const stanza)
|
|||||||
ProfMessage* message = message_init();
|
ProfMessage* message = message_init();
|
||||||
message->type = PROF_MSG_TYPE_MUCPM;
|
message->type = PROF_MSG_TYPE_MUCPM;
|
||||||
|
|
||||||
const gchar* from = xmpp_stanza_get_from(stanza);
|
const char* from = xmpp_stanza_get_from(stanza);
|
||||||
if (!from) {
|
if (!from) {
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
@ -1360,7 +1360,7 @@ _handle_chat(xmpp_stanza_t* const stanza, gboolean is_mam, gboolean is_carbon, c
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const gchar* from = xmpp_stanza_get_from(stanza);
|
const char* from = xmpp_stanza_get_from(stanza);
|
||||||
if (!from) {
|
if (!from) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user