Added include stdlib.h a few places to get prototype for atoi/exit/..
[idzebra-moved-to-github.git] / data1 / d1_doespec.c
index d1cb8f3..57d260d 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: d1_doespec.c,v 1.2 2002-10-22 13:19:50 adam Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
-   Index Data Aps
+/* $Id: d1_doespec.c,v 1.7 2005-01-16 23:14:56 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -21,11 +21,12 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 */
 
 #include <assert.h>
+#include <stdlib.h>
 
-#include <yaz/oid.h>
 #include <yaz/log.h>
+#include <yaz/oid.h>
 #include <yaz/proto.h>
-#include <data1.h>
+#include <idzebra/data1.h>
 
 static int match_children(data1_handle dh, data1_node *n,
                          Z_Espec1 *e, int i, Z_ETagUnit **t,
@@ -197,7 +198,7 @@ static int match_children_here (data1_handle dh, data1_node *n,
        counter++;
        if (occur && occur->which == Z_Occurrences_last)
        {
-           yaz_log(LOG_WARN, "Can't do occurrences=last (yet)");
+           yaz_log(YLOG_WARN, "Can't do occurrences=last (yet)");
            return 0;
        }
        if (!occur || occur->which == Z_Occurrences_all ||