mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
log.c: Format code
This commit is contained in:
parent
a0e1dfbb87
commit
9c433e3033
16
src/log.c
16
src/log.c
@ -65,16 +65,17 @@ static GHashTable *logs;
|
|||||||
static GHashTable *groupchat_logs;
|
static GHashTable *groupchat_logs;
|
||||||
static GDateTime *session_started;
|
static GDateTime *session_started;
|
||||||
|
|
||||||
enum {
|
|
||||||
STDERR_BUFSIZE = 4000,
|
|
||||||
STDERR_RETRY_NR = 5,
|
|
||||||
};
|
|
||||||
static int stderr_inited;
|
static int stderr_inited;
|
||||||
static log_level_t stderr_level;
|
static log_level_t stderr_level;
|
||||||
static int stderr_pipe[2];
|
static int stderr_pipe[2];
|
||||||
static char *stderr_buf;
|
static char *stderr_buf;
|
||||||
static GString *stderr_msg;
|
static GString *stderr_msg;
|
||||||
|
|
||||||
|
enum {
|
||||||
|
STDERR_BUFSIZE = 4000,
|
||||||
|
STDERR_RETRY_NR = 5,
|
||||||
|
};
|
||||||
|
|
||||||
struct dated_chat_log {
|
struct dated_chat_log {
|
||||||
gchar *filename;
|
gchar *filename;
|
||||||
GDateTime *date;
|
GDateTime *date;
|
||||||
@ -679,8 +680,8 @@ _free_chat_log(struct dated_chat_log *dated_log)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static
|
static gboolean
|
||||||
gboolean _key_equals(void *key1, void *key2)
|
_key_equals(void *key1, void *key2)
|
||||||
{
|
{
|
||||||
gchar *str1 = (gchar *) key1;
|
gchar *str1 = (gchar *) key1;
|
||||||
gchar *str2 = (gchar *) key2;
|
gchar *str2 = (gchar *) key2;
|
||||||
@ -807,7 +808,8 @@ log_stderr_handler(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int log_stderr_nonblock_set(int fd)
|
static int
|
||||||
|
log_stderr_nonblock_set(int fd)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user