X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fsrwtst.c;h=cd10a513ee38bc562e0601658aaa8a83e0311209;hp=2c9a229558a28d21bb6312a8cf70cadc7f26e8db;hb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;hpb=59aa88eb085c71e191802510804588a4f9edbe9b diff --git a/util/srwtst.c b/util/srwtst.c index 2c9a229..cd10a51 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-2013 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) {