diff options
Diffstat (limited to 'source3')
-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)); } /******************************************************************* |