X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftestclient.c;h=2418dfcc953c146b3e89d8520991ec17405a86de;hp=4ac8e08548b6164a1eedf55fbe3f39ef8bce61e5;hb=a030c87bc444608639905eca95e29f84a4f1d991;hpb=dbce572a22c976629901309fe6c274016a4b06ce diff --git a/test/api/testclient.c b/test/api/testclient.c index 4ac8e08..2418dfc 100644 --- a/test/api/testclient.c +++ b/test/api/testclient.c @@ -1,8 +1,21 @@ -/* - * $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) 1994-2011 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 + +*/ #include #include @@ -68,7 +81,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); @@ -128,6 +141,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