projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2407cf3
)
Do not declare several variables in non-XML mode
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 17 Jan 2005 10:19:48 +0000
(10:19 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 17 Jan 2005 10:19:48 +0000
(10:19 +0000)
src/srwutil.c
patch
|
blob
|
history
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
18113c0
..
e7afb51
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: srwutil.c,v 1.24 2005-01-16 21:56:24 adam Exp $
+ * $Id: srwutil.c,v 1.25 2005-01-17 10:19:48 adam Exp $
*/
/**
* \file srwutil.c
*/
/**
* \file srwutil.c
@@
-253,6
+253,7
@@
int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
{
char *db = "Default";
const char *p0 = hreq->path, *p1;
{
char *db = "Default";
const char *p0 = hreq->path, *p1;
+#if HAVE_XML2
const char *operation = 0;
char *version = 0;
char *query = 0;
const char *operation = 0;
char *version = 0;
char *query = 0;
@@
-269,6
+270,7
@@
int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
char *maximumTerms = 0;
char *responsePosition = 0;
char *extraRequestData = 0;
char *maximumTerms = 0;
char *responsePosition = 0;
char *extraRequestData = 0;
+#endif
char **uri_name;
char **uri_val;
char **uri_name;
char **uri_val;