vac: major cleanup and bug fixes
This commit is contained in:
parent
e9b70a5f4c
commit
ecc0a1b0e7
8 changed files with 1442 additions and 1289 deletions
|
|
@ -694,12 +694,12 @@ mbsearch(MetaBlock *mb, char *elem, int *ri, MetaEntry *me)
|
|||
}
|
||||
|
||||
void
|
||||
mbinit(MetaBlock *mb, uchar *p, int n)
|
||||
mbinit(MetaBlock *mb, uchar *p, int n, int entries)
|
||||
{
|
||||
memset(mb, 0, sizeof(MetaBlock));
|
||||
mb->maxsize = n;
|
||||
mb->buf = p;
|
||||
mb->maxindex = n/100;
|
||||
mb->maxindex = entries;
|
||||
mb->size = MetaHeaderSize + mb->maxindex*MetaIndexSize;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue