X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=rset%2Frsbool.c;h=3cb749c809fa5bba72e10f90084d6acd3a673c36;hp=f7fb85a81551ef1d1dadf013477dbb4e72eefcdc;hb=427ca5f986a5c3db226476fa46e5f89fba346ef6;hpb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7 diff --git a/rset/rsbool.c b/rset/rsbool.c index f7fb85a..3cb749c 100644 --- a/rset/rsbool.c +++ b/rset/rsbool.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 @@ -38,7 +38,6 @@ static void r_delete(RSET ct); static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf); static void r_pos(RSFD rfd, double *current, double *total); static int r_read_not(RSFD rfd, void *buf, TERMID *term); -static int r_write(RSFD rfd, const void *buf); static void r_get_terms(RSET ct, TERMID *terms, int maxterms, int *curterm); static const struct rset_control control_not = @@ -51,7 +50,7 @@ static const struct rset_control control_not = r_forward, r_pos, r_read_not, - r_write, + rset_no_write, }; struct rset_private { @@ -225,13 +224,6 @@ static int r_read_not(RSFD rfd, void *buf, TERMID *term) return 0; } - -static int r_write(RSFD rfd, const void *buf) -{ - yaz_log(YLOG_FATAL, "bool set type is read-only"); - return -1; -} - static void r_pos(RSFD rfd, double *current, double *total) { struct rfd_private *p = (struct rfd_private *)rfd->priv;