X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fapi%2Ft7.c;h=c100a8d8d4224a3231342e864aefefdea1178601;hb=d8e960f5f1060148a5fffa7a767c72391662fbdc;hp=f943cbe7bc1a0a8bac63cbc5aac9c83854f5fca2;hpb=f84ad20a7a6a45d02da7f162fa6bb1137e79a07f;p=idzebra-moved-to-github.git diff --git a/test/api/t7.c b/test/api/t7.c index f943cbe..c100a8d 100644 --- a/test/api/t7.c +++ b/test/api/t7.c @@ -1,6 +1,6 @@ -/* $Id: t7.c,v 1.4 2004-10-29 13:02:39 heikki Exp $ - Copyright (C) 2004 - Index Data Aps +/* $Id: t7.c,v 1.8 2005-03-09 12:14:42 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -49,14 +49,13 @@ int main(int argc, char **argv) "@attr 1=4 my"); Z_SortKeySpecList *spec = yaz_sort_spec (odr_output, "@attr 1=4 id"); - int hits; + zint hits; - init_data(zh,recs); + init_data(zh, recs); - - zebra_begin_trans (zh, 0); + zebra_begin_trans(zh, 0); - zebra_search_RPN (zh, odr_input, query, setname1, &hits); + zebra_search_RPN(zh, odr_input, query, setname1, &hits); rc=zebra_sort(zh, odr_output, 1, &setname1, setname2, spec, &status); if (rc) @@ -72,17 +71,17 @@ int main(int argc, char **argv) exit(1); } - zebra_end_trans (zh); + zebra_end_trans(zh); yaz_pqf_destroy(parser); /* - zebra_deleleResultSet(zh, Z_DeleteRequest_list, + zebra_deleteResultSet(zh, Z_DeleteRequest_list, 1, &setnamep, &status); */ - odr_destroy (odr_input); - odr_destroy (odr_output); + odr_destroy(odr_input); + odr_destroy(odr_output); - zebra_commit (zh); + zebra_commit(zh); - return close_down(zh,zs,0); + return close_down(zh, zs, 0); }