From da302d92c7685a56679c80b757e0adee8d092488 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 14 Oct 2012 17:58:58 +0100 Subject: Fixed compiler warning --- src/chat_log.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/chat_log.c') 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"); -- cgit 1.4.1-2-gfad0