X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsoap.c;h=3b47dcfca2ba97fa4b7468097f7f912fc2146025;hb=afae1117609712743c1109597d080a53a8dac5d4;hp=45e86cbbd55251e4df596f46b54e8e1739dcabd0;hpb=1f3fe256d54ab81d998cd622abda89580cc0b3ff;p=yaz-moved-to-github.git diff --git a/src/soap.c b/src/soap.c index 45e86cb..3b47dcf 100644 --- a/src/soap.c +++ b/src/soap.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: soap.c,v 1.13 2006-03-01 23:24:25 adam Exp $ + * $Id: soap.c,v 1.18 2007-05-06 20:12:20 adam Exp $ */ /** * \file soap.c @@ -14,7 +14,7 @@ #include -#if HAVE_XML2 +#if YAZ_HAVE_XML2 #include #include @@ -264,7 +264,7 @@ int z_soap_codec_enc_xsl(ODR o, Z_SOAP **pp, } if (stylesheet) { - char *content = odr_malloc(o, strlen(stylesheet) + 40); + char *content = (char *) odr_malloc(o, strlen(stylesheet) + 40); xmlNodePtr pi, ptr = xmlDocGetRootElement(doc); sprintf(content, "type=\"text/xsl\" href=\"%s\"", stylesheet);