util_tdb: return -1/0 from lock_with_timeout functions.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:28 +0000 (08:13 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:43:28 +0000 (08:13 +0930)
commit26ce47ecc09537d3ee6dff205f3dd564a74e6301
treefa274a5797c2631c3646aff106fd373f31385a58
parent5e0f62c3c20250a7fdb4be11f08bd407b11a204b
util_tdb: return -1/0 from lock_with_timeout functions.

Keeps the tdb2 API change (which returns error codes, rather than -1)
localized.  The function returns -1 down the other path, so make it
consistent.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/lib/util_tdb.c