diff options
author | Tim Potter <tpot@samba.org> | 2000-12-06 02:51:13 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-12-06 02:51:13 +0000 |
commit | a58ca91245334515fbc0132ab72772bb067a8131 (patch) | |
tree | 1d48403a794847ef132eff7b97c605185a815601 | |
parent | 0293259eaa6fd49f69bc6f0181c9145158c4e67f (diff) | |
download | samba-a58ca91245334515fbc0132ab72772bb067a8131.tar.gz samba-a58ca91245334515fbc0132ab72772bb067a8131.tar.bz2 samba-a58ca91245334515fbc0132ab72772bb067a8131.zip |
tdb_unlockchain() no longer returns a value
(This used to be commit aee52c7acf138f8fd651aeb3d9bef79f99d1a2a9)
-rw-r--r-- | source3/include/proto.h | 4 | ||||
-rw-r--r-- | source3/locking/locking.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index b46047ea12..da8895e913 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -928,10 +928,10 @@ BOOL locking_init(int read_only); BOOL locking_end(void); BOOL lock_share_entry(connection_struct *conn, SMB_DEV_T dev, SMB_INO_T inode); -BOOL unlock_share_entry(connection_struct *conn, +void unlock_share_entry(connection_struct *conn, SMB_DEV_T dev, SMB_INO_T inode); BOOL lock_share_entry_fsp(files_struct *fsp); -BOOL unlock_share_entry_fsp(files_struct *fsp); +void unlock_share_entry_fsp(files_struct *fsp); int get_share_modes(connection_struct *conn, SMB_DEV_T dev, SMB_INO_T inode, share_mode_entry **shares); diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 2056e6dcf5..b3601e8752 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -280,10 +280,10 @@ BOOL lock_share_entry(connection_struct *conn, /******************************************************************* Unlock a hash bucket entry. ******************************************************************/ -BOOL unlock_share_entry(connection_struct *conn, +void unlock_share_entry(connection_struct *conn, SMB_DEV_T dev, SMB_INO_T inode) { - return tdb_chainunlock(tdb, locking_key(dev, inode)) == 0; + tdb_chainunlock(tdb, locking_key(dev, inode)); } @@ -298,9 +298,9 @@ BOOL lock_share_entry_fsp(files_struct *fsp) /******************************************************************* Unlock a hash bucket entry. ******************************************************************/ -BOOL unlock_share_entry_fsp(files_struct *fsp) +void unlock_share_entry_fsp(files_struct *fsp) { - return tdb_chainunlock(tdb, locking_key(fsp->dev, fsp->inode)) == 0; + tdb_chainunlock(tdb, locking_key(fsp->dev, fsp->inode)); } /******************************************************************* |