X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fkcontrol.c;h=0317d0377bdacaee7c3cd6c9c6a4022cf52f4b8a;hp=725050a6db1b562da9b8a7d4133963fa0c64e5c8;hb=354f1142c4cc8c59b6f1170b95caec40bfe4d8c0;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/index/kcontrol.c b/index/kcontrol.c index 725050a..0317d03 100644 --- a/index/kcontrol.c +++ b/index/kcontrol.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 1994-2011 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include "index.h" @@ -58,7 +61,7 @@ struct rset_key_control *zebra_key_control_create(ZebraHandle zh) 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; @@ -73,7 +76,7 @@ struct rset_key_control *zebra_key_control_create(ZebraHandle zh) 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);