Using the new ylog.h everywhere, and fixing what that breaks!
[idzebra-moved-to-github.git] / dfa / grepper.c
index d8830a1..cdcb7c2 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: grepper.c,v 1.10 2002-08-02 19:26:55 adam Exp $
+/* $Id: grepper.c,v 1.11 2004-11-19 10:26:54 heikki Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -329,7 +329,7 @@ static int grep_file (struct DFA *dfa, const char *fname, int range)
         inf = fopen (fname, "r");
         if (!inf)
         {
-            logf (LOG_FATAL|LOG_ERRNO, "cannot open `%s'", fname);
+            yaz_log (YLOG_FATAL|YLOG_ERRNO, "cannot open `%s'", fname);
             exit (1);
         }
     }
@@ -401,7 +401,7 @@ int main (int argc, char **argv)
         }
         else
         {
-            logf (LOG_FATAL, "Unknown option '-%s'", arg);
+            yaz_log (YLOG_FATAL, "Unknown option '-%s'", arg);
             exit (1);
         }
     }