diff options
author | Volker Lendecke <vl@samba.org> | 2020-04-27 13:16:00 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-05-05 13:23:49 +0000 |
commit | 1be128eeedf2a4634a31e5b6a1c0f4b5f3f88345 (patch) | |
tree | fc4c570bfca52aa5f5ee3d3984fb708fe95f6b50 /source3/locking | |
parent | 733ae9cd95701f781d78af72015d64d3e6706f0c (diff) | |
download | samba-1be128eeedf2a4634a31e5b6a1c0f4b5f3f88345.tar.gz |
smbd: Make share_mode_for_one_entry() use just a uint8*
"num_share_modes" is passed separately, so "data.dsize" was not used
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue May 5 13:23:49 UTC 2020 on sn-devel-184
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/share_mode_lock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 26f8da8cfb4..de59b8d2545 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -1689,12 +1689,12 @@ struct share_mode_forall_entries_state { static bool share_mode_for_one_entry( struct share_mode_forall_entries_state *state, size_t *i, + uint8_t *data, size_t *num_share_modes, - TDB_DATA data, bool *writeback) { DATA_BLOB blob = { - .data = data.dptr + (*i) * SHARE_MODE_ENTRY_SIZE, + .data = data + (*i) * SHARE_MODE_ENTRY_SIZE, .length = SHARE_MODE_ENTRY_SIZE, }; struct share_mode_entry e = {.pid.pid=0}; @@ -1802,7 +1802,7 @@ static void share_mode_forall_entries_fn( i = 0; while (i<num_share_modes) { stop = share_mode_for_one_entry( - state, &i, &num_share_modes, data, &writeback); + state, &i, data.dptr, &num_share_modes, &writeback); if (stop) { break; } |