X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=44b1d97b057f3da1b1ceca8ab806d2ffdf1bc8ec;hp=58d0d3b8ec4658b28a815f841d10a9b012adc82a;hb=bf95c509245f5cb4025ef2db348d5f7ace3b5994;hpb=75c9defe1c9ffb8efe58507dc994a56e6fd0409b diff --git a/src/srwutil.c b/src/srwutil.c index 58d0d3b..44b1d97 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -606,7 +606,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; - *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; @@ -1454,7 +1454,7 @@ void yaz_encode_sru_extra(Z_SRW_PDU *sr, ODR odr, const char *extra_args) 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;