X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=recctrl%2Frectext.c;h=e984f844f8ce67a42c2ec42d38087586f4e745eb;hb=8407158947485c3897c8232bf5a1f4501eb5e710;hp=7791314990caeb8b7dd285b79cb4c5e692adac2b;hpb=f64645447b8b099975747eb50583cddd7d2dfa88;p=idzebra-moved-to-github.git diff --git a/recctrl/rectext.c b/recctrl/rectext.c index 7791314..e984f84 100644 --- a/recctrl/rectext.c +++ b/recctrl/rectext.c @@ -1,4 +1,4 @@ -/* $Id: rectext.c,v 1.27 2005-06-14 18:28:21 adam Exp $ +/* $Id: rectext.c,v 1.30 2006-04-26 11:12:31 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -39,14 +39,14 @@ static void *filter_init (Res res, RecType recType) return tinfo; } -static void filter_config(void *clientData, Res res, const char *args) +static ZEBRA_RES filter_config(void *clientData, Res res, const char *args) { - struct filter_info *tinfo = (struct marc_info*) clientData; - yaz_log(YLOG_LOG, "args:%s: len=%d", args, strlen(args)); + struct filter_info *tinfo = (struct filter_info*) clientData; xfree(tinfo->sep); tinfo->sep = 0; if (args && *args) tinfo->sep = xstrdup(args); + return ZEBRA_OK; } static void filter_destroy (void *clientData) @@ -115,7 +115,6 @@ static int filter_extract (void *clientData, struct recExtractCtrl *p) (long) (*fi->p->tellf)(fi->p->fh)); #endif (*p->init)(p, &recWord); - recWord.reg_type = 'w'; do { int i = 0;