diff options
author | Volker Lendecke <vl@samba.org> | 2012-12-13 13:31:59 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-12-21 11:54:53 +0100 |
commit | 116ec13bb0718eb1de1ac1f4410d5c33f1db616f (patch) | |
tree | 7a014c55dd3be8cdec45ac3b91bd7eb229dbaf33 /lib/tdb/common/traverse.c | |
parent | 7237fdd4ddc0b9c848b5936431b4f8731ce56dba (diff) | |
download | samba-116ec13bb0718eb1de1ac1f4410d5c33f1db616f.tar.gz samba-116ec13bb0718eb1de1ac1f4410d5c33f1db616f.tar.bz2 samba-116ec13bb0718eb1de1ac1f4410d5c33f1db616f.zip |
tdb: Fix blank line endings
Reviewed-by: Rusty Russell <rusty@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/tdb/common/traverse.c')
-rw-r--r-- | lib/tdb/common/traverse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tdb/common/traverse.c b/lib/tdb/common/traverse.c index 517fecb4fc..b171e54357 100644 --- a/lib/tdb/common/traverse.c +++ b/lib/tdb/common/traverse.c @@ -1,4 +1,4 @@ - /* + /* Unix SMB/CIFS implementation. trivial database library @@ -117,7 +117,7 @@ static tdb_off_t tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock /* Try to clean dead ones from old traverses */ current = tlock->off; tlock->off = rec->next; - if (!(tdb->read_only || tdb->traverse_read) && + if (!(tdb->read_only || tdb->traverse_read) && tdb_do_delete(tdb, current, rec) != 0) goto fail; } @@ -140,7 +140,7 @@ static tdb_off_t tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock if fn is NULL then it is not called a non-zero return value from fn() indicates that the traversal should stop */ -static int tdb_traverse_internal(struct tdb_context *tdb, +static int tdb_traverse_internal(struct tdb_context *tdb, tdb_traverse_func fn, void *private_data, struct tdb_traverse_lock *tl) { @@ -165,7 +165,7 @@ static int tdb_traverse_internal(struct tdb_context *tdb, } count++; /* now read the full record */ - key.dptr = tdb_alloc_read(tdb, tl->off + sizeof(rec), + key.dptr = tdb_alloc_read(tdb, tl->off + sizeof(rec), rec.key_len + rec.data_len); if (!key.dptr) { ret = -1; @@ -212,7 +212,7 @@ out: /* a write style traverse - temporarily marks the db read only */ -_PUBLIC_ int tdb_traverse_read(struct tdb_context *tdb, +_PUBLIC_ int tdb_traverse_read(struct tdb_context *tdb, tdb_traverse_func fn, void *private_data) { struct tdb_traverse_lock tl = { NULL, 0, 0, F_RDLCK }; @@ -241,7 +241,7 @@ _PUBLIC_ int tdb_traverse_read(struct tdb_context *tdb, WARNING: The data buffer given to the callback fn does NOT meet the alignment restrictions malloc gives you. */ -_PUBLIC_ int tdb_traverse(struct tdb_context *tdb, +_PUBLIC_ int tdb_traverse(struct tdb_context *tdb, tdb_traverse_func fn, void *private_data) { struct tdb_traverse_lock tl = { NULL, 0, 0, F_WRLCK }; |