X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstsoap2.c;h=a47f069b19d8e01d205ede8d693a01e7735dd736;hb=0edd22d3d3fb9bafa8795815517e9ad51d51641f;hp=b0d24558e64fa272f4274d3694bc908a67bd2d56;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/test/tstsoap2.c b/test/tstsoap2.c index b0d2455..a47f069 100644 --- a/test/tstsoap2.c +++ b/test/tstsoap2.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ @@ -23,7 +23,7 @@ static void tst_srw(void) {0, 0, 0} }; Z_SRW_PDU *sr = yaz_srw_get(o, Z_SRW_searchRetrieve_request); - Z_SOAP *p = odr_malloc(o, sizeof(*p)); + Z_SOAP *p = (Z_SOAP *) odr_malloc(o, sizeof(*p)); YAZ_CHECK(o); YAZ_CHECK(sr); @@ -35,7 +35,7 @@ static void tst_srw(void) #endif p->which = Z_SOAP_generic; - p->u.generic = odr_malloc(o, sizeof(*p->u.generic)); + p->u.generic = (Z_SOAP_Generic *) odr_malloc(o, sizeof(*p->u.generic)); p->u.generic->no = 0; p->u.generic->ns = 0; p->u.generic->p = sr;