ZOOM C: deal with excess bytes HTTPS case YAZ-833
[yaz-moved-to-github.git] / zoom / zoomtst6.c
index cce5ea1..2ac31f7 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 
@@ -30,7 +30,7 @@ static void display_records (const char *tname, ZOOM_resultset r)
                 printf ("%d %s\n", pos+1, (db ? db : "unknown"));
                 if (render)
                 {
-                    if (fwrite (render, 1, len, stdout) != len)
+                    if (fwrite (render, 1, len, stdout) != (size_t) len)
                         printf("write to stdout failed\n");
                 }
                 printf ("\n");
@@ -127,6 +127,7 @@ int main(int argc, char **argv)
 /*
  * Local variables:
  * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
  * indent-tabs-mode: nil
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab