X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=dict%2Fdrdwr.c;h=5608e8a162c7f1d6f2af0d8a9916bc86026f8df4;hp=670ed456698606ef4b8dd90e17d4d449379af104;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=ac13dceecd5f75669820819575daf88e0add5c8d diff --git a/dict/drdwr.c b/dict/drdwr.c index 670ed45..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 @@ -59,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 @@ -106,7 +106,7 @@ void dict_bf_flush_blocks(Dict_BFile bf, int no_to_flush) effective_block, effective_offset, p->nbytes); #endif - + } else { @@ -158,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; } @@ -166,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)