projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
060a794
)
fix vacuum function name
author
teodor
<teodor>
Mon, 4 Oct 2004 18:00:17 +0000
(18:00 +0000)
committer
teodor
<teodor>
Mon, 4 Oct 2004 18:00:17 +0000
(18:00 +0000)
flatdb.c
patch
|
blob
|
history
diff --git
a/flatdb.c
b/flatdb.c
index
f0be00a
..
a570417
100644
(file)
--- a/
flatdb.c
+++ b/
flatdb.c
@@
-162,7
+162,7
@@
FDBClose(FDB *db) {
if ( db->listcur ) {
FDBFreeSpace *ptr;
if ( db->listcur ) {
FDBFreeSpace *ptr;
-
v
acuumFreeSpace(db);
+
FDBV
acuumFreeSpace(db);
header.lenfreespace = sizeof(FDBFreeSpace)*db->listcur;
ptr = findFreeSpace( db, header.lenfreespace );
header.lenfreespace = sizeof(FDBFreeSpace)*db->listcur;
ptr = findFreeSpace( db, header.lenfreespace );
@@
-276,7
+276,7
@@
FDBPut(FDB *db, FDBRecord *record, off_t *offset ) {
*offset = ptr->offset;
ptr->length -= record->length;
if ( ptr->length == 0 )
*offset = ptr->offset;
ptr->length -= record->length;
if ( ptr->length == 0 )
-
v
acuumFreeSpace(db);
+
FDBV
acuumFreeSpace(db);
if ( lseek(db->fd, *offset, SEEK_SET) != *offset )
tlog(TL_CRIT|TL_EXIT,"FDBPut: lseek failed: %s", strerror(errno));
} else {
if ( lseek(db->fd, *offset, SEEK_SET) != *offset )
tlog(TL_CRIT|TL_EXIT,"FDBPut: lseek failed: %s", strerror(errno));
} else {