X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomtst6.c;h=90f41fff0ace50501bc7deb27aa74d8a5415d2c3;hp=ecee61b00000789df402a2469f7a0c7706fb0a79;hb=4063d979ead2def7e1a921a05e5ac0d49bfdc999;hpb=70c49c4cc7bd32eeaed7b88a82f43d50ee28ff20 diff --git a/zoom/zoomtst6.c b/zoom/zoomtst6.c index ecee61b..90f41ff 100644 --- a/zoom/zoomtst6.c +++ b/zoom/zoomtst6.c @@ -1,8 +1,8 @@ -/* - * $Id: zoomtst6.c,v 1.9 2002-02-20 14:40:42 adam Exp $ - * - * Asynchronous multi-target client doing two searches - */ +/* $Id: zoomtst6.c,v 1.12 2006-04-21 10:28:08 adam Exp $ */ + +/** \file zoomtst6.c + \brief Asynchronous multi-target client with two searches +*/ #include #include @@ -14,7 +14,7 @@ static void display_records (const char *tname, ZOOM_resultset r) { /* OK, no major errors. Look at the result count */ int pos; - printf ("%s: %d hits\n", tname, ZOOM_resultset_size(r)); + printf ("%s: %ld hits\n", tname, (long) ZOOM_resultset_size(r)); /* go through all records at target */ for (pos = 0; pos < 4; pos++) { @@ -50,9 +50,9 @@ int main(int argc, char **argv) o = ZOOM_options_create (); if (argc < 4) { - fprintf (stderr, "usage:\n%s target1 .. targetN query1 query2\n", - *argv); - exit (1); + fprintf (stderr, "usage:\n%s target1 .. targetN query1 query2\n", + *argv); + exit (1); } if (no > 500) no = 500; @@ -69,20 +69,20 @@ int main(int argc, char **argv) q = ZOOM_query_create (); if (ZOOM_query_prefix (q, argv[argc-2])) { - printf ("bad PQF: %s\n", argv[argc-2]); - exit (2); + printf ("bad PQF: %s\n", argv[argc-2]); + exit (2); } /* connect - and search all */ for (i = 0; i