TCPD libs only used in libyaz's LIBADD
[yaz-moved-to-github.git] / zoom / zoom-benchmark.c
index 03e7c2b..19934f6 100644 (file)
@@ -1,7 +1,6 @@
-/*
- * $Id: zoom-benchmark.c,v 1.19 2007-05-06 20:12:21 adam Exp $
- *
- * Asynchronous multi-target client doing search and piggyback retrieval
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2010 Index Data
+ * See the file LICENSE for details.
  */
 
 #include <stdio.h>
 
 
 /* naming events */
-static char* zoom_events[10];
+static char* zoom_events[ZOOM_EVENT_MAX+1];
 
 /* re-sorting event numbers to progress numbers */
-static int zoom_progress[10];
+static int zoom_progress[ZOOM_EVENT_MAX+1];
 
 /* commando line parameters */
 static struct parameters_t { 
@@ -303,7 +302,7 @@ int main(int argc, char **argv)
     z = (ZOOM_connection *) xmalloc(sizeof(*z) * parameters.concurrent);
     r = (ZOOM_resultset *) xmalloc(sizeof(*r) * parameters.concurrent);
     elc = (int *) xmalloc(sizeof(*elc) * parameters.concurrent * parameters.repeat);
-    els = (event_line_t *) xmalloc(
+    els = (struct event_line_t *) xmalloc(
         sizeof(*els) * parameters.concurrent * parameters.repeat * 10);
     o = ZOOM_options_create();
 
@@ -429,6 +428,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