summaryrefslogtreecommitdiff
path: root/source3/tdb/common/freelist.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-11-30 03:05:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:15 -0500
commitcc13e21dbeb9548ea90f86445fe9a371b5c05e0c (patch)
tree9ee289f82efa8005426f07464e9537df5df391ed /source3/tdb/common/freelist.c
parent2941b044b3fed09cd94d6b2e9057d3e58c12703b (diff)
downloadsamba-cc13e21dbeb9548ea90f86445fe9a371b5c05e0c.tar.gz
samba-cc13e21dbeb9548ea90f86445fe9a371b5c05e0c.tar.bz2
samba-cc13e21dbeb9548ea90f86445fe9a371b5c05e0c.zip
r19959: Allow tdb to be built standalone in Samba3.
Add code to check for loops in the free list. Should help us validate tdb's against corruption. Jeremy. (This used to be commit f8e7386773cbbb31e2f42ffcbae9b979c1197635)
Diffstat (limited to 'source3/tdb/common/freelist.c')
-rw-r--r--source3/tdb/common/freelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/common/freelist.c b/source3/tdb/common/freelist.c
index 9d1ae59801..0efe47f879 100644
--- a/source3/tdb/common/freelist.c
+++ b/source3/tdb/common/freelist.c
@@ -29,7 +29,7 @@
#include "tdb_private.h"
/* read a freelist record and check for simple errors */
-static int rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
+int rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
{
if (tdb->methods->tdb_read(tdb, off, rec, sizeof(*rec),DOCONV()) == -1)
return -1;