From b8eddb4e3cee81a8fa211b5f99c6c7bb1d3a2ba5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 19 Feb 2026 10:32:11 +0100 Subject: [PATCH] cleanup: Make muc_nick() return const char* Fix `type qualifiers ignored on function return type`. --- src/xmpp/muc.c | 2 +- src/xmpp/muc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/muc.c b/src/xmpp/muc.c index 312ac941..0418667b 100644 --- a/src/xmpp/muc.c +++ b/src/xmpp/muc.c @@ -427,7 +427,7 @@ muc_rooms(void) * Return current users nickname for the specified room * The nickname is owned by the chat room and should not be modified or freed */ -const char* const +const char* muc_nick(const char* const room) { ChatRoom* chat_room = g_hash_table_lookup(rooms, room); diff --git a/src/xmpp/muc.h b/src/xmpp/muc.h index 7ae7a0c9..cb1c6afe 100644 --- a/src/xmpp/muc.h +++ b/src/xmpp/muc.h @@ -93,7 +93,7 @@ GList* muc_rooms(void); void muc_set_features(const char* const room, GSList* features); -const char* const muc_nick(const char* const room); +const char* muc_nick(const char* const room); char* muc_password(const char* const room); void muc_nick_change_start(const char* const room, const char* const new_nick);