X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fsrwtst.c;h=f293620e6d42f4d85ba11fd95f1051708074eef8;hp=1a2cf6984a0cc73743f7bb7381304384c79c2363;hb=dc4414aeda179bc8ebe3fc46ac53e4a24d265d16;hpb=4c176312acdc3444c9afc820f76a393e64668e52 diff --git a/util/srwtst.c b/util/srwtst.c index 1a2cf69..f293620 100644 --- a/util/srwtst.c +++ b/util/srwtst.c @@ -1,13 +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.2 2005-01-15 19:47:15 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} @@ -24,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); @@ -95,7 +95,6 @@ int main(int argc, char **argv) } odr_destroy(decode); odr_destroy(encode); - nmem_exit(); exit(0); } #else @@ -105,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 + */ +