-/* $Id: kcontrol.c,v 1.5 2006-08-16 13:16:36 adam Exp $
- Copyright (C) 1995-2006
- 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 <assert.h>
#include "index.h"
struct rset_key_control *zebra_key_control_create(ZebraHandle zh)
{
- const char *res_val;
struct rset_key_control *kc = xmalloc(sizeof(*kc));
struct context_control *cp = xmalloc(sizeof(*cp));
kc->context = cp;
kc->key_size = sizeof(struct it_key);
- kc->cmp = key_compare_it;
+ kc->cmp = key_compare;
kc->key_logdump_txt = key_logdump_txt;
kc->getseq = key_get_seq;
kc->get_segment = 0;
}
- zebra_limit_for_rset(zh->m_limit,
+ zebra_limit_for_rset(zh->m_limit,
&kc->filter_func,
&cp->filter_destroy,
&kc->filter_data);
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab