X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstsoap2.c;h=a47f069b19d8e01d205ede8d693a01e7735dd736;hb=3a54a02da2f546427c4e5fe57f952c97f54437ea;hp=30e613e0df2992341232884e894943a5b3708756;hpb=10927d911232ff5b224587f32aa68b8506777905;p=yaz-moved-to-github.git diff --git a/test/tstsoap2.c b/test/tstsoap2.c index 30e613e..a47f069 100644 --- a/test/tstsoap2.c +++ b/test/tstsoap2.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: tstsoap2.c,v 1.6 2007-01-03 08:42:16 adam Exp $ */ #include @@ -25,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); @@ -37,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;