summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-06-20 18:40:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-06-20 11:18:35 +0200
commit9850f256337d70401d962bb1f6d5b834a221358d (patch)
tree1e3d01a156da09aab6a3bb9b0fb66d8cd36ab7d9 /source3/libsmb
parent868d77bc5b38e628f74d5cd03c5f87eb5a666b09 (diff)
downloadsamba-9850f256337d70401d962bb1f6d5b834a221358d.tar.gz
samba-9850f256337d70401d962bb1f6d5b834a221358d.tar.bz2
samba-9850f256337d70401d962bb1f6d5b834a221358d.zip
tdb_chainunlock: ignore return value.
TDB2 returns void here. tdb_chainunlock will *always* return with the chain unlocked, but it will complain via the log function if it wasn't locked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smb_share_modes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c
index 86e1a81ef1..a4a54972c9 100644
--- a/source3/libsmb/smb_share_modes.c
+++ b/source3/libsmb/smb_share_modes.c
@@ -131,8 +131,9 @@ int smb_unlock_share_mode_entry(struct smbdb_ctx *db_ctx,
uint64_t extid)
{
struct locking_key lk;
- return tdb_chainunlock(db_ctx->smb_tdb,
- get_locking_key(&lk, dev, ino, extid));
+ tdb_chainunlock(db_ctx->smb_tdb,
+ get_locking_key(&lk, dev, ino, extid));
+ return 0;
}
/*