projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/idzebra
[idzebra-moved-to-github.git]
/
dict
/
drdwr.c
diff --git
a/dict/drdwr.c
b/dict/drdwr.c
index
670ed45
..
b7ae8bf
100644
(file)
--- a/
dict/drdwr.c
+++ b/
dict/drdwr.c
@@
-59,7
+59,7
@@
static void release_block(Dict_BFile bf, struct Dict_file_block *p)
{
assert(p);
{
assert(p);
- /* remove from lru queue */
+ /* remove from lru queue */
if (p->lru_prev)
p->lru_prev->lru_next = p->lru_next;
else
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
effective_block, effective_offset,
p->nbytes);
#endif
-
+
}
else
{
}
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;
if (*pp)
(*pp)->h_prev = &p->h_next;
*pp = p;
-
+
return 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)
{
/* Already at front? */
if (!p->lru_next)
- return ;
+ return ;
/* Remove */
if (p->lru_prev)
/* Remove */
if (p->lru_prev)