X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fapitest.c;h=6c27a32b1b4d9ea9bcbd4e1e3f294d35e7187f8b;hb=8de059a4446c5ad8f95e8090d1dc97f0c2bb8d9e;hp=cd88853ae4531384158b87e4343df9e12c1e9d68;hpb=a9e90f22d2cefbafc9d490a03a3bc7d1b75d57ee;p=idzebra-moved-to-github.git diff --git a/index/apitest.c b/index/apitest.c index cd88853..6c27a32 100644 --- a/index/apitest.c +++ b/index/apitest.c @@ -1,4 +1,4 @@ -/* $Id: apitest.c,v 1.22 2005-03-09 12:14:42 adam Exp $ +/* $Id: apitest.c,v 1.24 2006-03-31 15:58:04 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -146,13 +146,17 @@ int main (int argc, char **argv) exit (1); } /* open Zebra */ - zh = zebra_open (zs); + zh = zebra_open (zs, 0); if (!zh) { printf ("zebras_open failed\n"); exit (1); } - zebra_select_databases (zh, 1, &base); + if (zebra_select_databases (zh, 1, &base) != ZEBRA_OK) + { + printf ("zebra_select_databases failed\n"); + exit (1); + } /* Each argument to main will be a query */ for (argno = 1; argno < argc; argno++) {