1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fixed compiler warning

This commit is contained in:
James Booth 2012-10-14 17:58:58 +01:00
parent b2103b1c0f
commit da302d92c7
2 changed files with 6 additions and 5 deletions

View File

@ -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");

View File

@ -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