Improve const correctness

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-04-28 16:42:27 +02:00
parent 4eaa291f70
commit f7cddd11c4
5 changed files with 7 additions and 7 deletions

View File

@@ -275,7 +275,7 @@ roster_remove(const char* const name, const char* const barejid)
if (contact) {
GList* resources = p_contact_get_available_resources(contact);
while (resources) {
auto_gchar gchar* fulljid = g_strdup_printf("%s/%s", barejid, resources->data);
auto_gchar gchar* fulljid = g_strdup_printf("%s/%s", barejid, (char*)resources->data);
autocomplete_remove(roster->fulljid_ac, fulljid);
resources = g_list_next(resources);
}