X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Frecord_conv.c;h=27381fa2db9e704b17d01635ee7be906bd2df19d;hb=db93359f0cbf9a1e9dc81ea05f7b8662f843ae3d;hp=bf148e973d7b9ac2da29bcb917999d9945325561;hpb=ca44977409b92a8b1c7bfbc913a6422edc41d1d5;p=yaz-moved-to-github.git diff --git a/src/record_conv.c b/src/record_conv.c index bf148e9..27381fa 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 2005-2006, Index Data ApS + * Copyright (C) 2005-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: record_conv.c,v 1.12 2006-12-12 10:41:38 marc Exp $ + * $Id: record_conv.c,v 1.15 2007-03-19 14:40:07 adam Exp $ */ /** * \file record_conv.c @@ -126,7 +126,7 @@ void yaz_record_conv_destroy(yaz_record_conv_t p) { yaz_record_conv_reset(p); nmem_destroy(p->nmem); - wrbuf_free(p->wr_error, 1); + wrbuf_destroy(p->wr_error); xfree(p->path); xfree(p); } @@ -339,10 +339,8 @@ static int conv_marc(yaz_record_conv_t p, const xmlNode *ptr) return 0; } -int yaz_record_conv_configure(yaz_record_conv_t p, const void *ptr_v) +int yaz_record_conv_configure(yaz_record_conv_t p, const xmlNode *ptr) { - const xmlNode *ptr = ptr_v; - yaz_record_conv_reset(p); /* parsing element children */ @@ -486,7 +484,7 @@ int yaz_record_conv_record(yaz_record_conv_t p, const char *yaz_record_conv_get_error(yaz_record_conv_t p) { - return wrbuf_buf(p->wr_error); + return wrbuf_cstr(p->wr_error); } void yaz_record_conv_set_path(yaz_record_conv_t p, const char *path)