]> git.ozlabs.org Git - ccan/commit
tdb: cleanup: tdb_lock_list helper to cover tdb_lock and tdb_lock_nonblock
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:26:17 +0000 (13:56 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:26:17 +0000 (13:56 +1030)
commit497e23b21fe7dc8256c23f79f14cdb4c3e86cc9e
treec3aa5bfa5e7868c2cb31adfcd1459ecc9810dbef
parentd665ff828977d76f8ec6ed53e6aab2e6fa124675
tdb: cleanup: tdb_lock_list helper to cover tdb_lock and tdb_lock_nonblock

Reduce code duplication, and also gives us a central point for the next
patch which wants to cover all list locks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tdb/lock.c