improve const correctness

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2023-01-09 17:58:40 +01:00
parent e886ba0c6f
commit 1a85448bf2
3 changed files with 8 additions and 8 deletions

View File

@@ -120,11 +120,11 @@ chat_session_get_jid(const char* const barejid)
return jid;
}
char*
const char*
chat_session_get_state(const char* const barejid)
{
ChatSession* session = chat_session_get(barejid);
char* state = NULL;
const char* state = NULL;
if (session) {
if (prefs_get_boolean(PREF_STATES) && session->send_states) {
state = STANZA_NAME_ACTIVE;