X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Flog.c;h=8bc5ad06895568b1ca63263e138d4350487f778d;hb=6533da485c4fcf4bc1bb6d70d0b18b13602381ff;hp=e3c8dc85ebc5c4abcf2a505a2f193d81e9d5bafd;hpb=3fd941dda9cb4fc873abbd9f94cb998b7e0bda50;p=yaz-moved-to-github.git diff --git a/src/log.c b/src/log.c index e3c8dc8..8bc5ad0 100644 --- a/src/log.c +++ b/src/log.c @@ -105,12 +105,12 @@ static unsigned int next_log_bit = YLOG_LAST_BIT<<1; /* first dynamic bit */ static YAZ_MUTEX log_mutex = 0; -static void yaz_log_lock(void) +void yaz_log_lock(void) { yaz_mutex_enter(log_mutex); } -static void yaz_log_unlock(void) +void yaz_log_unlock(void) { yaz_mutex_leave(log_mutex); } @@ -340,8 +340,6 @@ static void yaz_log_open_check(struct tm *tm, int force, const char *filemode) { yaz_log_close(); yaz_log_info.log_file = new_file; - if (l_level & YLOG_FLUSH) - setvbuf(yaz_log_info.log_file, 0, _IONBF, 0); } else {