X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Fdrdwr.c;h=5608e8a162c7f1d6f2af0d8a9916bc86026f8df4;hp=f66f8dfd680bb527820463c933740614985469e4;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=a030c87bc444608639905eca95e29f84a4f1d991 diff --git a/dict/drdwr.c b/dict/drdwr.c index f66f8df..5608e8a 100644 --- a/dict/drdwr.c +++ b/dict/drdwr.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 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 @@ +#if HAVE_CONFIG_H +#include +#endif #include #include #if HAVE_UNISTD_H @@ -56,7 +59,7 @@ static void release_block(Dict_BFile bf, struct Dict_file_block *p) { assert(p); - /* remove from lru queue */ + /* remove from lru queue */ if (p->lru_prev) p->lru_prev->lru_next = p->lru_next; else @@ -103,7 +106,7 @@ void dict_bf_flush_blocks(Dict_BFile bf, int no_to_flush) effective_block, effective_offset, p->nbytes); #endif - + } else { @@ -155,7 +158,7 @@ static struct Dict_file_block *alloc_block(Dict_BFile bf, int no) if (*pp) (*pp)->h_prev = &p->h_next; *pp = p; - + return p; } @@ -163,7 +166,7 @@ static void move_to_front(Dict_BFile bf, struct Dict_file_block *p) { /* Already at front? */ if (!p->lru_next) - return ; + return ; /* Remove */ if (p->lru_prev)