Skip to content

Commit

Permalink
Remove init_log
Browse files Browse the repository at this point in the history
  • Loading branch information
hurufu committed May 11, 2024
1 parent a9ecf31 commit 2d60274
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
1 change: 0 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2d60274

Please sign in to comment.