X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fsrwtst.c;h=f293620e6d42f4d85ba11fd95f1051708074eef8;hp=096b2c5aedfb93f968f7d1f833e4c5eee96d4461;hb=dc4414aeda179bc8ebe3fc46ac53e4a24d265d16;hpb=4e82b831a8ac31e25b246a631acde354d8161688 diff --git a/util/srwtst.c b/util/srwtst.c index 096b2c5..f293620 100644 --- a/util/srwtst.c +++ b/util/srwtst.c @@ -1,14 +1,14 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: srwtst.c,v 1.3 2005-01-17 13:09:43 adam Exp $ + * $Id: srwtst.c,v 1.7 2007-04-17 20:26:18 adam Exp $ */ #include #include -#if HAVE_XML2 +#if YAZ_HAVE_XML2 Z_SOAP_Handler h[2] = { {"http://www.loc.gov/zing/srw/v1.0/", 0, (Z_SOAP_fun) yaz_srw_codec}, {0, 0, 0} @@ -25,7 +25,6 @@ int main(int argc, char **argv) ODR decode, encode; int debug = 0; - nmem_init(); if (argc == 2 && !strcmp(argv[1], "debug")) debug = 1; no = fread(buf, 1, sizeof(buf), stdin); @@ -96,7 +95,6 @@ int main(int argc, char **argv) } odr_destroy(decode); odr_destroy(encode); - nmem_exit(); exit(0); } #else @@ -106,3 +104,11 @@ int main(int argc, char **argv) exit(1); } #endif +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +