X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ft5.c;h=8db05c02692ddc393be286ba74a911eb4f69a51f;hb=3e8db66d56c466a5a269362eb70b4931d9579128;hp=dc1926485db591c0c79a0ca7d4e8c9a092bd39a9;hpb=fad075b9f201964d42a6869a44bd7a3e486163cd;p=idzebra-moved-to-github.git diff --git a/test/api/t5.c b/test/api/t5.c index dc19264..8db05c0 100644 --- a/test/api/t5.c +++ b/test/api/t5.c @@ -1,4 +1,4 @@ -/* $Id: t5.c,v 1.3 2004-06-16 22:06:49 adam Exp $ +/* $Id: t5.c,v 1.6 2004-08-25 09:23:39 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -22,7 +22,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include /* read zebra.cfg from env var srcdir if it exists; otherwise current dir */ static ZebraService start_service() @@ -30,7 +30,7 @@ static ZebraService start_service() char cfg[256]; char *srcdir = getenv("srcdir"); sprintf(cfg, "%.200s%szebra.cfg", srcdir ? srcdir : "", srcdir ? "/" : ""); - return zebra_start(cfg, 0, 0); + return zebra_start(cfg); } static void expect(ZebraHandle zh, const char *pqf, int hits_expect, @@ -52,7 +52,7 @@ static void expect(ZebraHandle zh, const char *pqf, int hits_expect, int main(int argc, char **argv) { - int i, hits = -1; + int i; int exit_code = 0; ZebraService zs; ZebraHandle zh;