projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unused variable
[yaz-moved-to-github.git]
/
src
/
soap.c
diff --git
a/src/soap.c
b/src/soap.c
index
8c23a9a
..
5dbd490
100644
(file)
--- 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-2008 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: soap.c,v 1.15 2006-10-24 08:05:45 adam Exp $
*/
/**
* \file soap.c
*/
/**
* \file soap.c
@@
-261,12
+259,10
@@
int z_soap_codec_enc_xsl(ODR o, Z_SOAP **pp,
xmlDocSetRootElement(doc, body_ptr->children);
body_ptr->children = 0;
xmlFreeNode(envelope_ptr);
xmlDocSetRootElement(doc, body_ptr->children);
body_ptr->children = 0;
xmlFreeNode(envelope_ptr);
- if (!encoding)
- encoding = "utf-8";
}
if (stylesheet)
{
}
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);
xmlNodePtr pi, ptr = xmlDocGetRootElement(doc);
sprintf(content, "type=\"text/xsl\" href=\"%s\"", stylesheet);