about summary refs log tree commit diff stats
path: root/src/xmpp/chat_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/chat_session.c')
-rw-r--r--src/xmpp/chat_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/chat_session.c b/src/xmpp/chat_session.c
index f62f090c..56a782f1 100644
--- a/src/xmpp/chat_session.c
+++ b/src/xmpp/chat_session.c
@@ -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;