From 2d60274fddc03ec3846cdb8270fce0c35a34350f Mon Sep 17 00:00:00 2001 From: Aleksy Grabowski Date: Sat, 11 May 2024 09:15:55 +0200 Subject: [PATCH] Remove init_log --- log.c | 6 ------ log.h | 1 - main.c | 1 - 3 files changed, 8 deletions(-) diff --git a/log.c b/log.c index 31d4345..8a1a200 100644 --- a/log.c +++ b/log.c @@ -7,12 +7,6 @@ int g_log_level = LOG_DEBUG; const char* g_errname; #endif -void init_log(void) { -#ifdef NO_LOGS_ON_STDERR - xfclose(stderr); -#endif -} - char* to_printable(const unsigned char* const p, const unsigned char* const pe, const size_t s, char b[static const s]) { // TODO: Add support for regional characters, ie from 0x80 to 0xFF diff --git a/log.h b/log.h index 1fb3472..1a061d5 100644 --- a/log.h +++ b/log.h @@ -61,5 +61,4 @@ extern int g_log_level; #endif -void init_log(void); char* to_printable(const unsigned char* p, const unsigned char* pe, size_t s, char b[static s]); diff --git a/main.c b/main.c index 15cbd18..649b367 100644 --- a/main.c +++ b/main.c @@ -18,7 +18,6 @@ static void adjust_rlimit(void) { } int main(const int ac, const char* av[static const ac]) { - init_log(); if (ac != 3) return 1; adjust_rlimit();