From f9ecb7e5b111193db0f5d714e748762ee2b8be1b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 1 Jun 2021 19:34:19 +0200 Subject: C89 Compat --- src/log.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/log.c') diff --git a/src/log.c b/src/log.c index 9122ecb..8e779a5 100644 --- a/src/log.c +++ b/src/log.c @@ -19,14 +19,17 @@ const char* log_loglevel_str[6] = { int log_init_file(char* _file, unsigned int _verbosity) { + return -1; + /* log_fd = open(_file, O_WRONLY | O_APPEND | O_CREAT | O_DSYNC); return log_init_stdout(_verbosity);; + */ } int log_init_stdout(unsigned int _verbosity) { - log_loglevel = _verbosity;// > _LOG_DEBUG ? _LOG_DEBUG : _verbosity; + log_loglevel = _verbosity; /* > _LOG_DEBUG ? _LOG_DEBUG : _verbosity; */ log_fd = STDIN_FILENO; LOGPRINTF(0, "=== RESTART ==="); -- cgit v1.2.3