X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fsrwtst.c;h=f12c2d715f6c2a478548dae74abb44959d97e1dd;hb=64dbcabe91775e26370b75ee899c435f36389989;hp=2c9a229558a28d21bb6312a8cf70cadc7f26e8db;hpb=59aa88eb085c71e191802510804588a4f9edbe9b;p=yaz-moved-to-github.git diff --git a/util/srwtst.c b/util/srwtst.c index 2c9a229..f12c2d7 100644 --- a/util/srwtst.c +++ b/util/srwtst.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -36,7 +36,7 @@ int main(int argc, char **argv) decode = odr_createmem(ODR_DECODE); encode = odr_createmem(ODR_ENCODE); content_len = no; - z_soap_codec(decode, &soap_package, + z_soap_codec(decode, &soap_package, &content_buf, &content_len, h); if (!soap_package) { @@ -51,7 +51,7 @@ int main(int argc, char **argv) { Z_SRW_PDU *sr = (Z_SRW_PDU *) soap_package->u.generic->p; if (sr->which == Z_SRW_searchRetrieve_request) - { + { Z_SRW_searchRetrieveRequest *req = sr->u.request; switch(req->query_type) {