X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Flog.c;h=6b82bcdcf85665f971f1952665de956ebc3fb6ef;hp=0463a629113bae6d77ca01040ef482a7fd5e70c9;hb=7b4adcc54d64c9196a8c19a7f69c850774b8776b;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/log.c b/src/log.c index 0463a62..6b82bcd 100644 --- a/src/log.c +++ b/src/log.c @@ -32,21 +32,6 @@ #include #include -#define HAS_STRERROR 1 - - -#if HAS_STRERROR - -#else -char *strerror(int n) -{ - extern char *sys_errlist[]; - return sys_errlist[n]; -} - -#endif - - static int l_level = YLOG_DEFAULT_LEVEL; enum l_file_type { use_stderr, use_none, use_file }; @@ -280,14 +265,14 @@ void yaz_log_set_handler(void (*func)(int, const char *, void *), void *info) void log_event_start(void (*func)(int, const char *, void *), void *info) { - start_hook_func = func; - start_hook_info = info; + start_hook_func = func; + start_hook_info = info; } void log_event_end(void (*func)(int, const char *, void *), void *info) { - end_hook_func = func; - end_hook_info = info; + end_hook_func = func; + end_hook_info = info; } static void yaz_log_open_check(struct tm *tm, int force, const char *filemode)