X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomtst10.c;h=976ed48769086200a7712eb4a8eb189fe8df5eba;hb=e7377c90323e05943dcf318c172a5728605fd9b5;hp=837b5f8f87d15a7f7e4fcb3d40fdc83dd2f2ed22;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/zoom/zoomtst10.c b/zoom/zoomtst10.c index 837b5f8..976ed48 100644 --- a/zoom/zoomtst10.c +++ b/zoom/zoomtst10.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -25,7 +25,7 @@ int main(int argc, char **argv) exit (1); } - if (ZOOM_query_ccl2rpn(q, argv[2], + if (ZOOM_query_ccl2rpn(q, argv[2], "term t=l,r s=al\n" "ti u=4 s=pw\n", &ccl_error_code, &ccl_error_string, &ccl_error_pos)) { @@ -37,13 +37,13 @@ int main(int argc, char **argv) else { z = ZOOM_connection_new (argv[1], 0); - + if ((error = ZOOM_connection_error(z, &errmsg, &addinfo))) { fprintf (stderr, "Error: %s (%d) %s\n", errmsg, error, addinfo); exit (2); } - + r = ZOOM_connection_search (z, q); ZOOM_query_destroy(q); if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))