X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=util%2Fit_key.c;h=5ec244b9d4e322b3029e394da1c94635e9d9b371;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hp=6d98eddd879ae865b8ba64c5d46238418c715c29;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;p=idzebra-moved-to-github.git diff --git a/util/it_key.c b/util/it_key.c index 6d98edd..5ec244b 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-2009 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 #include @@ -129,7 +132,7 @@ int key_qsort_compare (const void *p1, const void *p2) size_t l; char *cp1 = *(char **) p1; char *cp2 = *(char **) p2; - + if ((r = strcmp (cp1, cp2))) return r; l = strlen(cp1)+1; @@ -213,7 +216,7 @@ void iscz1_encode (void *vp, char **dst, const char **src) 3, 2, 9, 12 3, 2, 10, 2 4, 1 - + if diff is 0, then there is more ... if diff is non-zero, then _may_ be more */