Added several type casts due to no portable way of doing printf of
[yaz-moved-to-github.git] / zoom / zoomtst5.c
index b2e466d..1d4cdda 100644 (file)
@@ -1,8 +1,10 @@
-/*
- * $Id: zoomtst5.c,v 1.10 2005-06-25 15:46:08 adam Exp $
- *
- * Asynchronous multi-target client doing search, sort and present
- */
+/* $Id: zoomtst5.c,v 1.11 2006-04-21 10:28:08 adam Exp $  */
+
+/** \file zoomtst5.c
+    \brief Asynchronous multi-target client with sort
+    
+    Asynchronous multi-target client doing search, sort and present
+*/
 
 #include <stdio.h>
 #include <string.h>
@@ -84,8 +86,8 @@ int main(int argc, char **argv)
         {
             /* OK, no major errors. Look at the result count */
             int pos;
-            printf ("%s: %d hits\n", ZOOM_connection_option_get(z[i], "host"),
-                    ZOOM_resultset_size(r[i]));
+            printf ("%s: %ld hits\n", ZOOM_connection_option_get(z[i], "host"),
+                    (long) ZOOM_resultset_size(r[i]));
             /* go through first 20 records at target */
             for (pos = 0; pos < 20; pos++)
             {