-/* $Id: rsnull.c,v 1.40 2007-01-15 15:10:19 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ 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
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <assert.h>
#include <idzebra/util.h>
static void r_delete(RSET ct);
static void r_pos(RSFD rfd, double *current, double *total);
static int r_read(RSFD rfd, void *buf, TERMID *term);
-static int r_write(RSFD rfd, const void *buf);
-static const struct rset_control control =
+static const struct rset_control control =
{
"null",
r_delete,
0, /* no forward */
r_pos,
r_read,
- r_write,
+ rset_no_write,
};
RSET rset_create_null(NMEM nmem, struct rset_key_control *kcontrol,
return 0;
}
-static int r_write(RSFD rfd, const void *buf)
-{
- yaz_log(YLOG_FATAL, "NULL set type is read-only");
- return -1;
-}
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab