data1 part of zebra
[idzebra-moved-to-github.git] / index / zserver.c
index cae952e..cfdd3dd 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zserver.c,v 1.98 2002-09-17 12:27:12 adam Exp $
+/* $Id: zserver.c,v 1.100 2002-10-22 12:51:08 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
    Index Data Aps
 
@@ -32,7 +32,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <unistd.h>
 #endif
 
-#include <yaz/data1.h>
+#include <yaz/log.h>
 #include <yaz/ill.h>
 
 #include "zserver.h"
@@ -481,14 +481,14 @@ int bend_esrequest (void *handle, bend_esrequest_rr *rr)
                yaz_log (LOG_LOG, "database: %s", toKeep->databaseName);
 
                 if (zebra_select_database(zh, toKeep->databaseName))
-                    return;
+                    return 0;
            }
             else
             {
                 yaz_log (LOG_WARN, "no database supplied for ES Update");
                 rr->errcode = 1008;
                 rr->errstring = "database";
-                return;
+                return 0;
             }
            if (notToKeep)
            {