Replace key_compare_it with key_compare
[idzebra-moved-to-github.git] / index / kcontrol.c
index eaccd30..0317d03 100644 (file)
@@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 */
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <assert.h>
 #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);