From 4217c939ec6bdb80a3fe953e5b60f6f7b7a43635 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 18 Apr 2000 20:41:04 +0000 Subject: locking/locking.c: Fixed placeholder code for POSIX locking. printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy (This used to be commit 204ca1195c86499bd9beb273ce573db7a56ccead) --- source3/tdb/tdb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/tdb') diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h index b24f08b648..949a843e8a 100644 --- a/source3/tdb/tdb.h +++ b/source3/tdb/tdb.h @@ -59,6 +59,8 @@ typedef struct { enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK, TDB_ERR_OOM, TDB_ERR_EXISTS}; +typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *); + #if STANDALONE TDB_CONTEXT *tdb_open(char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode); -- cgit