about summary refs log tree commit diff stats
path: root/src/chat_log.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-10-14 17:58:58 +0100
committerJames Booth <boothj5@gmail.com>2012-10-14 17:58:58 +0100
commitda302d92c7685a56679c80b757e0adee8d092488 (patch)
treecdf7fcaadd813158575bbcb2ab5439103933b342 /src/chat_log.c
parentb2103b1c0fba54f6e65ce290505309836cbf543f (diff)
downloadprofani-tty-da302d92c7685a56679c80b757e0adee8d092488.tar.gz
Fixed compiler warning
Diffstat (limited to 'src/chat_log.c')
-rw-r--r--src/chat_log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/chat_log.c b/src/chat_log.c
index ea3df7ef..d9f81add 100644
--- a/src/chat_log.c
+++ b/src/chat_log.c
@@ -44,7 +44,7 @@ static gboolean _log_roll_needed(struct dated_chat_log *dated_log);
 static struct dated_chat_log *_create_log(char *other, const  char * const login);
 static void _free_chat_log(struct dated_chat_log *dated_log);
 static gboolean _key_equals(void *key1, void *key2);
-static char * _get_log_filename(char *other, const char * const login, 
+static char * _get_log_filename(const char * const other, const char * const login, 
     GDateTime *dt);
 
 void
@@ -94,7 +94,7 @@ chat_log_chat(const gchar * const login, gchar *other,
 }
 
 GSList *
-chat_log_get_previous(const gchar * const login, gchar *recipient, 
+chat_log_get_previous(const gchar * const login, const gchar * const recipient, 
     GSList *history)
 {
     GTimeZone *tz = g_time_zone_new_local();
@@ -213,7 +213,8 @@ gboolean _key_equals(void *key1, void *key2)
 }
 
 static char *
-_get_log_filename(char *other, const char * const login, GDateTime *dt)
+_get_log_filename(const char * const other, const char * const login, 
+    GDateTime *dt)
 {
     GString *log_file = g_string_new(getenv("HOME"));
     g_string_append(log_file, "/.profanity/log");