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/check.c | |
parent | 16cc345d4f84367e70e133200f7aa335c2aae8c6 (diff) | |
download | samba-f5e9ed1ea965827f29fe0fa77a32e09737e51b45.tar.gz |
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/check.c')
-rw-r--r-- | lib/ntdb/check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ntdb/check.c b/lib/ntdb/check.c index 1c676c7d450..cff6e0345ec 100644 --- a/lib/ntdb/check.c +++ b/lib/ntdb/check.c @@ -812,13 +812,13 @@ _PUBLIC_ enum NTDB_ERROR ntdb_check_(struct ntdb_context *ntdb, ecode = ntdb_allrecord_lock(ntdb, F_RDLCK, NTDB_LOCK_WAIT, false); if (ecode != NTDB_SUCCESS) { - return ntdb->last_error = ecode; + return ecode; } ecode = ntdb_lock_expand(ntdb, F_RDLCK); if (ecode != NTDB_SUCCESS) { ntdb_allrecord_unlock(ntdb, F_RDLCK); - return ntdb->last_error = ecode; + return ecode; } ecode = check_header(ntdb, &recovery, &features, &num_capabilities); @@ -860,5 +860,5 @@ out: ntdb_unlock_expand(ntdb, F_RDLCK); free(fr); free(used); - return ntdb->last_error = ecode; + return ecode; } |