Doxygen comments for xmalloc utils. Reformat
[yaz-moved-to-github.git] / zoom / zoomtst1.c
index 9023f55..76d5152 100644 (file)
@@ -1,7 +1,6 @@
-/*
- * $Id: zoomtst1.c,v 1.4 2005-06-25 15:46:08 adam Exp $
- *
- * Synchronous single-target client doing search (but no retrieval)
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2009 Index Data
+ * See the file LICENSE for details.
  */
 
 #include <stdlib.h>
@@ -34,7 +33,7 @@ int main(int argc, char **argv)
     if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))
         fprintf (stderr, "Error: %s (%d) %s\n", errmsg, error, addinfo);
     else
-        printf ("Result count: %d\n", ZOOM_resultset_size(r));
+        printf ("Result count: %ld\n", (long) ZOOM_resultset_size(r));
     ZOOM_resultset_destroy (r);
     ZOOM_connection_destroy (z);
     exit (0);
@@ -42,6 +41,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