X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsoap.c;h=59930d234cd93cf8a6c243a6bc8c55c6254a425d;hp=45e86cbbd55251e4df596f46b54e8e1739dcabd0;hb=7b4adcc54d64c9196a8c19a7f69c850774b8776b;hpb=1f3fe256d54ab81d998cd622abda89580cc0b3ff diff --git a/src/soap.c b/src/soap.c index 45e86cb..59930d2 100644 --- a/src/soap.c +++ b/src/soap.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: soap.c,v 1.13 2006-03-01 23:24:25 adam Exp $ */ /** * \file soap.c @@ -14,7 +12,7 @@ #include -#if HAVE_XML2 +#if YAZ_HAVE_XML2 #include #include @@ -264,7 +262,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); @@ -351,6 +349,7 @@ int z_soap_error(ODR o, Z_SOAP *p, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab