X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fapitest.c;h=88c9e6b3ae4d1b811fc83ac6b3e2e7d2019c5775;hp=57c2f746df798deac7671aed0993844c5e676781;hb=e150e51a7e20a902e9fd2f11f00811f94f67d529;hpb=e5b0bb88921b593c89dd6ae9077c6566bc8a6a91 diff --git a/index/apitest.c b/index/apitest.c index 57c2f74..88c9e6b 100644 --- a/index/apitest.c +++ b/index/apitest.c @@ -1,8 +1,8 @@ #include -#include -#include +#include +#include #include "zebraapi.h" /* Small routine to display GRS-1 record variants ... */ @@ -109,6 +109,8 @@ int main (int argc, char **argv) nmem_init (); + log_init_file("apitest.log"); + odr_input = odr_createmem (ODR_DECODE); odr_output = odr_createmem (ODR_ENCODE); @@ -147,7 +149,7 @@ int main (int argc, char **argv) } /* result set name will be called 1,2, etc */ - sprintf (setname, "%d", i); + sprintf (setname, "%d", argno); /* fire up the search */ zebra_search_rpn (zh, odr_input, odr_output, query, 1, &base, setname); @@ -184,7 +186,7 @@ int main (int argc, char **argv) for (i = 0; i