From da302d92c7685a56679c80b757e0adee8d092488 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 14 Oct 2012 17:58:58 +0100 Subject: [PATCH] Fixed compiler warning --- src/chat_log.c | 7 ++++--- src/chat_log.h | 4 ++-- 2 files changed, 6 insertions(+), 5 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"); diff --git a/src/chat_log.h b/src/chat_log.h index d8455a26..7071da55 100644 --- a/src/chat_log.h +++ b/src/chat_log.h @@ -34,7 +34,7 @@ void chat_log_init(void); void chat_log_chat(const gchar * const login, gchar *other, const gchar * const msg, chat_log_direction_t direction); void chat_log_close(void); -GSList * chat_log_get_previous(const gchar * const login, gchar *recipient, - GSList *history); +GSList * chat_log_get_previous(const gchar * const login, + const gchar * const recipient, GSList *history); #endif