Examples using Bib-1 use attributes
[idzebra-moved-to-github.git] / rset / rsbool.c
index f7fb85a..3cb749c 100644 (file)
@@ -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;