* Copyright (C) 2005-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: retrieval.c,v 1.18 2007-04-12 13:52:57 adam Exp $
+ * $Id: retrieval.c,v 1.20 2007-05-06 20:12:20 adam Exp $
*/
/**
* \file retrieval.c
yaz_retrieval_t yaz_retrieval_create()
{
- yaz_retrieval_t p = xmalloc(sizeof(*p));
+ yaz_retrieval_t p = (yaz_retrieval_t) xmalloc(sizeof(*p));
p->odr = odr_createmem(ODR_ENCODE);
p->nmem = odr_getmem(p->odr);
p->wr_error = wrbuf_alloc();
{
struct _xmlAttr *attr;
- struct yaz_retrieval_elem *el = nmem_malloc(p->nmem, sizeof(*el));
+ struct yaz_retrieval_elem *el = (struct yaz_retrieval_elem *)
+ nmem_malloc(p->nmem, sizeof(*el));
el->syntax = 0;
el->identifier = 0;
if (!syntax_matches && syntax)
{
char buf[OID_STR_MAX];
- wrbuf_printf(p->wr_error, "%s", oid_to_dotstring(syntax, buf));
+ wrbuf_printf(p->wr_error, "%s", oid_oid_to_dotstring(syntax, buf));
return 2;
}
if (schema)