X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frsmultiandor.c;h=7b9d20a63761d92933863db6c9639d87f8b85a9f;hb=af365974e8bf926a6bb2a9314c44d0149920c390;hp=423264956a2add7a31e9e7a21ad77bc388e8c7d9;hpb=1c36b136d275beda5800fe1a36022b29195ab30b;p=idzebra-moved-to-github.git diff --git a/rset/rsmultiandor.c b/rset/rsmultiandor.c index 4232649..7b9d20a 100644 --- a/rset/rsmultiandor.c +++ b/rset/rsmultiandor.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -50,7 +50,6 @@ static void r_close(RSFD rfd); static void r_delete(RSET ct); static int r_read_and(RSFD rfd, void *buf, TERMID *term); static int r_read_or(RSFD rfd, void *buf, TERMID *term); -static int r_write(RSFD rfd, const void *buf); static int r_forward_and(RSFD rfd, void *buf, TERMID *term, const void *untilbuf); static int r_forward_or(RSFD rfd, void *buf, TERMID *term, @@ -69,7 +68,7 @@ static const struct rset_control control_or = r_forward_or, r_pos_or, r_read_or, - r_write, + rset_no_write, }; static const struct rset_control control_and = @@ -82,7 +81,7 @@ static const struct rset_control control_and = r_forward_and, r_pos_and, r_read_and, - r_write, + rset_no_write, }; /* The heap structure: @@ -650,12 +649,6 @@ static void r_pos_or(RSFD rfd, double *current, double *total) r_pos_x(rfd, current, total, 0); } -static int r_write(RSFD rfd, const void *buf) -{ - yaz_log(YLOG_FATAL, "multior set type is read-only"); - return -1; -} - static void r_get_terms(RSET ct, TERMID *terms, int maxterms, int *curterm) { if (ct->term)