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
Document a little.
[yaz-moved-to-github.git]
/
src
/
srwutil.c
diff --git
a/src/srwutil.c
b/src/srwutil.c
index
58d0d3b
..
7b62217
100644
(file)
--- a/
src/srwutil.c
+++ b/
src/srwutil.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-9,6
+9,7
@@
#include <stdlib.h>
#include <yaz/srw.h>
#include <stdlib.h>
#include <yaz/srw.h>
+#include <yaz/matchstr.h>
#include <yaz/yaz-iconv.h>
static int hex_digit (int ch)
#include <yaz/yaz-iconv.h>
static int hex_digit (int ch)
@@
-606,7
+607,7
@@
int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
Z_SRW_extra_arg **l = &extra_args;
while (*l)
l = &(*l)->next;
Z_SRW_extra_arg **l = &extra_args;
while (*l)
l = &(*l)->next;
- *l = odr_malloc(decode, sizeof(**l));
+ *l = (Z_SRW_extra_arg *) odr_malloc(decode, sizeof(**l));
(*l)->name = odr_strdup(decode, n);
(*l)->value = odr_strdup(decode, v);
(*l)->next = 0;
(*l)->name = odr_strdup(decode, n);
(*l)->value = odr_strdup(decode, v);
(*l)->next = 0;
@@
-1454,7
+1455,7
@@
void yaz_encode_sru_extra(Z_SRW_PDU *sr, ODR odr, const char *extra_args)
while (*name)
{
while (*name)
{
- *ea = odr_malloc(odr, sizeof(**ea));
+ *ea = (Z_SRW_extra_arg *) odr_malloc(odr, sizeof(**ea));
(*ea)->name = *name;
(*ea)->value = *val;
ea = &(*ea)->next;
(*ea)->name = *name;
(*ea)->value = *val;
ea = &(*ea)->next;
@@
-1470,6
+1471,7
@@
void yaz_encode_sru_extra(Z_SRW_PDU *sr, ODR odr, const char *extra_args)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab