X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fit_key.c;h=4e82c8b636b8fdd0275d03832dc9a6b25ba796e1;hb=36b87ab1076744bf0438799bb375705f535bcb6b;hp=5ec244b9d4e322b3029e394da1c94635e9d9b371;hpb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;p=idzebra-moved-to-github.git diff --git a/util/it_key.c b/util/it_key.c index 5ec244b..4e82c8b 100644 --- a/util/it_key.c +++ b/util/it_key.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 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 @@ -64,25 +64,6 @@ void key_logdump(int logmask, const void *p) key_logdump_txt(logmask, p, ""); } -int key_compare_it (const void *p1, const void *p2) -{ - int i, l = ((struct it_key *) p1)->len; - if (((struct it_key *) p2)->len > l) - l = ((struct it_key *) p2)->len; - assert (l <= IT_KEY_LEVEL_MAX && l > 0); - for (i = 0; i < l; i++) - { - if (((struct it_key *) p1)->mem[i] != ((struct it_key *) p2)->mem[i]) - { - if (((struct it_key *) p1)->mem[i] > ((struct it_key *) p2)->mem[i]) - return l-i; - else - return i-l; - } - } - return 0; -} - char *key_print_it (const void *p, char *buf) { strcpy(buf, "");