X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsoap.c;h=5e58a49e6ad6795765ab92afb7c60604a5ec799b;hp=5a3b4422b2336cf3c21ed24b260e09a2bab8a54f;hb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/soap.c b/src/soap.c index 5a3b442..5e58a49 100644 --- a/src/soap.c +++ b/src/soap.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. - * - * $Id: soap.c,v 1.17 2007-01-03 08:42:15 adam Exp $ */ /** * \file soap.c @@ -11,6 +9,9 @@ * This implements encoding and decoding of SOAP packages using * Libxml2. */ +#if HAVE_CONFIG_H +#include +#endif #include @@ -264,7 +265,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 +352,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