Bug fix: missing close (and leaking file handle)
[idzebra-moved-to-github.git] / test / testclient.c
index e40b97a..7fddccd 100644 (file)
@@ -1,11 +1,16 @@
 /*
- * $Id: testclient.c,v 1.8 2002-12-10 12:54:24 adam Exp $
+ * $Id: testclient.c,v 1.10 2003-02-28 15:34:21 adam Exp $
  *
  * Z39.50 client specifically for Zebra testing.
  */
 
 #include <stdlib.h>
 #include <stdio.h>
+#ifdef WIN32
+#else
+#include <unistd.h>
+#endif
+
 #include <yaz/xmalloc.h>
 #include <yaz/options.h>
 #include <yaz/zoom.h>
@@ -105,7 +110,7 @@ int main(int argc, char **argv)
         ZOOM_resultset_option_set(r, "preferredRecordSyntax", format);
     for (pos = 0; pos < retrieve_number; pos++)
     {
-        size_t len;
+        int len;
         const char *rec =
             ZOOM_record_get(
                 ZOOM_resultset_record(r, pos + retrieve_offset),