X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Flookup.c;h=d47267f23631cd25c4ec90aade2da7ab98c3375d;hp=14c5ebe3536ba63fb1a53d0813e70231d55c0084;hb=27bdd6aa26843aeac89f635ed495996088d8e8aa;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d diff --git a/dict/lookup.c b/dict/lookup.c index 14c5ebe..d47267f 100644 --- a/dict/lookup.c +++ b/dict/lookup.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2010 Index Data + Copyright (C) 2004-2013 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 @@ -19,6 +19,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -37,7 +40,7 @@ static char *dict_look(Dict dict, const Dict_char *str, Dict_ptr ptr) dict_bf_readp(dict->dbf, ptr, &p); mid = lo = 0; hi = DICT_nodir(p)-1; - indxp = (short*) ((char*) p+DICT_bsize(p)-sizeof(short)); + indxp = (short*) ((char*) p+DICT_bsize(p)-sizeof(short)); while (lo <= hi) { mid = (lo+hi)/2;