ZOOM C: deal with excess bytes HTTPS case YAZ-833
[yaz-moved-to-github.git] / zoom / zoomtst9.c
index 8e9898b..2e19f6d 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id: zoomtst9.c,v 1.3 2006-08-24 13:19:44 adam Exp $  */
-
-/** \file zoomtst9.c
-    \brief Extended Service Update
-*/
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) Index Data
+ * See the file LICENSE for details.
+ */
 
 #include <stdio.h>
 #include <string.h>
@@ -12,7 +11,7 @@
 #include <yaz/xmalloc.h>
 #include <yaz/zoom.h>
 
-static void usage()
+static void usage(void)
 {
     fprintf(stderr, "usage:\n"
             "zoomtst9 target [insert|delete|replace|update] id1 rec1 "
@@ -33,15 +32,15 @@ int main(int argc, char **argv)
     ZOOM_options o = ZOOM_options_create ();
     int error;
     const char *errmsg, *addinfo;
-    
+
     if (argc < 3)
         usage();
 
     z = ZOOM_connection_create (o);
-    
+
     /* connect and init */
     ZOOM_connection_connect (z, argv[1], 0);
-    
+
     if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))
     {
         fprintf(stderr, "%s error: %s (%d) %s\n",
@@ -107,6 +106,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