mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed compiler warning
This commit is contained in:
parent
b2103b1c0f
commit
da302d92c7
@ -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 struct dated_chat_log *_create_log(char *other, const char * const login);
|
||||||
static void _free_chat_log(struct dated_chat_log *dated_log);
|
static void _free_chat_log(struct dated_chat_log *dated_log);
|
||||||
static gboolean _key_equals(void *key1, void *key2);
|
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);
|
GDateTime *dt);
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -94,7 +94,7 @@ chat_log_chat(const gchar * const login, gchar *other,
|
|||||||
}
|
}
|
||||||
|
|
||||||
GSList *
|
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)
|
GSList *history)
|
||||||
{
|
{
|
||||||
GTimeZone *tz = g_time_zone_new_local();
|
GTimeZone *tz = g_time_zone_new_local();
|
||||||
@ -213,7 +213,8 @@ gboolean _key_equals(void *key1, void *key2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
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"));
|
GString *log_file = g_string_new(getenv("HOME"));
|
||||||
g_string_append(log_file, "/.profanity/log");
|
g_string_append(log_file, "/.profanity/log");
|
||||||
|
@ -34,7 +34,7 @@ void chat_log_init(void);
|
|||||||
void chat_log_chat(const gchar * const login, gchar *other,
|
void chat_log_chat(const gchar * const login, gchar *other,
|
||||||
const gchar * const msg, chat_log_direction_t direction);
|
const gchar * const msg, chat_log_direction_t direction);
|
||||||
void chat_log_close(void);
|
void chat_log_close(void);
|
||||||
GSList * chat_log_get_previous(const gchar * const login, gchar *recipient,
|
GSList * chat_log_get_previous(const gchar * const login,
|
||||||
GSList *history);
|
const gchar * const recipient, GSList *history);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user