X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Flog.c;h=2ecc8588afd921b43a2f8e000d683329366ff479;hp=d4973f2106246af33501dd379b8d79448d07d4f7;hb=b64382a1e420049b882b87fb05fe058aa6592d1c;hpb=c2641d280328e9bc114ca8c7b4585842c0acb05c diff --git a/src/log.c b/src/log.c index d4973f2..2ecc858 100644 --- a/src/log.c +++ b/src/log.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: log.c,v 1.38 2006-07-31 10:05:04 adam Exp $ + * $Id: log.c,v 1.39 2006-09-27 11:39:02 adam Exp $ */ /** @@ -55,7 +55,8 @@ char *strerror(int n) #endif -static int default_log_level() { +static int default_log_level(void) +{ char *env = getenv("YAZ_LOG"); if (env != 0) return yaz_log_mask_str_x(env, YLOG_DEFAULT_LEVEL); @@ -120,7 +121,7 @@ static struct { static unsigned int next_log_bit = YLOG_LAST_BIT<<1; /* first dynamic bit */ -static void init_mutex() +static void init_mutex(void) { if (mutex_init_flag) return; @@ -140,7 +141,7 @@ FILE *yaz_log_file(void) return f; } -void yaz_log_close() +void yaz_log_close(void) { if (yaz_file_type == use_file && yaz_global_log_file) {