}
static struct share_mode_oplock *find_share_mode_oplock(
- struct share_mode_data *d, struct smb2_lease_key *key,
+ struct share_mode_data *d, const struct smb2_lease_key *key,
uint16_t *idx)
{
uint16_t i;
for (i=0; i<d->num_leases; i++) {
struct share_mode_oplock *l = &d->leases[i];
- struct share_lease_key *k = &l->lease_key;
+ const struct share_lease_key *k = &l->lease_key;
if ((key->data[0] == k->data[0]) &&
(key->data[1] == k->data[1])) {
*idx = i;