diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 15:06:17 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-02 15:06:17 +0200 |
commit | 9c433e30333b04b1a9ead9c3fc99e3a62fcfa650 (patch) | |
tree | c7454491a8459b61282e8530f9f2a94a3e3ff362 | |
parent | a0e1dfbb87de4b4d0161daeb0775b68423aad806 (diff) | |
download | profani-tty-9c433e30333b04b1a9ead9c3fc99e3a62fcfa650.tar.gz |
log.c: Format code
-rw-r--r-- | src/log.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/log.c b/src/log.c index 56ebfec1..72654762 100644 --- a/src/log.c +++ b/src/log.c @@ -65,16 +65,17 @@ static GHashTable *logs; static GHashTable *groupchat_logs; static GDateTime *session_started; -enum { - STDERR_BUFSIZE = 4000, - STDERR_RETRY_NR = 5, -}; static int stderr_inited; static log_level_t stderr_level; static int stderr_pipe[2]; static char *stderr_buf; static GString *stderr_msg; +enum { + STDERR_BUFSIZE = 4000, + STDERR_RETRY_NR = 5, +}; + struct dated_chat_log { gchar *filename; GDateTime *date; @@ -679,8 +680,8 @@ _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) { gchar *str1 = (gchar *) key1; 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; |