/* This file is part of the Zebra server.
- Copyright (C) 2004-2013 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
zint hits_limit, const char *ref_id)
{
- TERMID t;
- yaz_log (log_level, "term_create '%s' %d f=%s type=%d nmem=%p",
- name, length, flags, type, nmem);
- t= (TERMID) nmem_malloc(nmem, sizeof(*t));
+ TERMID t = (TERMID) nmem_malloc(nmem, sizeof(*t));
+
if (!name)
- t->name = NULL;
- else if (length == -1)
+ name = "";
+ if (length == -1)
t->name = nmem_strdup(nmem, name);
else
t->name = nmem_strdupn(nmem, name, length);
rset_visit(rset->children[i], level+1);
}
+int rset_no_write(RSFD rfd, const void *buf)
+{
+ yaz_log(YLOG_FATAL, "%s set type is read-only", rfd->rset->control->desc);
+ return -1;
+}
+
/*
* Local variables:
* c-basic-offset: 4