Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / test / api / testclient.c
index 4ac8e08..20d8b4c 100644 (file)
@@ -1,9 +1,25 @@
-/*
- * $Id: testclient.c,v 1.4 2006-06-13 20:04:38 adam Exp $
- *
- * Z39.50 client specifically for Zebra testing.
- */
+/* This file is part of the Zebra server.
+   Copyright (C) Index Data
+
+Zebra is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
+*/
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <stdlib.h>
 #include <stdio.h>
 #ifdef WIN32
@@ -68,7 +84,7 @@ int main(int argc, char **argv)
         }
     }
 
-    if (!target || !target)
+    if (!target || !query)
     {
         printf ("%s: missing target/query\n", prog);
         printf ("usage:\n%s [options] target query \n", prog);
@@ -82,7 +98,7 @@ int main(int argc, char **argv)
         exit (3);
     }
     z = ZOOM_connection_new (target, 0);
-    
+
     if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))
     {
        printf ("Error: %s (%d) %s\n", errmsg, error, addinfo);
@@ -115,7 +131,7 @@ int main(int argc, char **argv)
             ZOOM_record_get(
                 ZOOM_resultset_record(r, pos + retrieve_offset),
                 "render", &len);
-        
+
         if (rec)
             fwrite (rec, 1, len, stdout);
     }
@@ -128,6 +144,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