diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-18 22:30:27 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-19 05:38:06 +0200 |
commit | f5e9ed1ea965827f29fe0fa77a32e09737e51b45 (patch) | |
tree | e8d6d817d775413f29885416b8aecd8e385146d2 /lib/ntdb/hash.c | |
parent | 16cc345d4f84367e70e133200f7aa335c2aae8c6 (diff) | |
download | samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.gz samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.bz2 samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.zip |
ntdb: remove ntdb_error()
It was a hack to make compatibility easier. Since we're not doing that,
it can go away: all callers must use the return value now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/hash.c')
-rw-r--r-- | lib/ntdb/hash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ntdb/hash.c b/lib/ntdb/hash.c index 95b98c0736..e87705b123 100644 --- a/lib/ntdb/hash.c +++ b/lib/ntdb/hash.c @@ -853,8 +853,7 @@ static enum NTDB_ERROR chainlock(struct ntdb_context *ntdb, const NTDB_DATA *key contention - it cannot guarantee how many records will be locked */ _PUBLIC_ enum NTDB_ERROR ntdb_chainlock(struct ntdb_context *ntdb, NTDB_DATA key) { - return ntdb->last_error = chainlock(ntdb, &key, F_WRLCK, NTDB_LOCK_WAIT, - "ntdb_chainlock"); + return chainlock(ntdb, &key, F_WRLCK, NTDB_LOCK_WAIT, "ntdb_chainlock"); } _PUBLIC_ void ntdb_chainunlock(struct ntdb_context *ntdb, NTDB_DATA key) @@ -874,8 +873,8 @@ _PUBLIC_ void ntdb_chainunlock(struct ntdb_context *ntdb, NTDB_DATA key) _PUBLIC_ enum NTDB_ERROR ntdb_chainlock_read(struct ntdb_context *ntdb, NTDB_DATA key) { - return ntdb->last_error = chainlock(ntdb, &key, F_RDLCK, NTDB_LOCK_WAIT, - "ntdb_chainlock_read"); + return chainlock(ntdb, &key, F_RDLCK, NTDB_LOCK_WAIT, + "ntdb_chainlock_read"); } _PUBLIC_ void ntdb_chainunlock_read(struct ntdb_context *ntdb, NTDB_DATA key) |