Fixed several prototypes.. Most changes are f() to f(void).
[idzebra-moved-to-github.git] / test / api / testlib.c
index 31c9219..18f3cd9 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: testlib.c,v 1.37 2006-08-31 08:36:53 adam Exp $
+/* $Id: testlib.c,v 1.39 2006-10-29 17:20:01 adam Exp $
    Copyright (C) 1995-2006
    Index Data ApS
 
@@ -44,7 +44,6 @@ int log_level=0; /* not static, t*.c may use it */
 
 void tl_start_log(int argc, char **argv)
 {
-    int cmd_level = 0;
     char logname[2048];
     if (!argv) 
         return;
@@ -59,7 +58,8 @@ void tl_start_log(int argc, char **argv)
        log_level = yaz_log_mask_str_x(argv[1], 0);
     if (argc >= 3)
        yaz_log_time_format(argv[2]);
-    yaz_log_init_level(YLOG_DEFAULT_LEVEL | log_level | cmd_level);
+    if (log_level)
+        yaz_log_init_level(log_level);
     yaz_log(log_level, "starting %s", argv[0]);
 }
 
@@ -89,7 +89,7 @@ ZebraService tl_start_up(char *cfgname, int argc, char **argv)
 /**
  * get_srcdir: return env srcdir or . (if does does not exist)
  */
-const char *tl_get_srcdir()
+const char *tl_get_srcdir(void)
 {
     const char *srcdir = getenv("srcdir");
     if (!srcdir || ! *srcdir)