]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make share_mode_entry_find() take a const pointer
authorVolker Lendecke <vl@samba.org>
Fri, 24 Apr 2020 13:58:59 +0000 (15:58 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 May 2020 11:48:39 +0000 (11:48 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/locking/share_mode_lock.c

index 183a1e55234d6ee1812c18e27b02d64454b1909e..5b6c02a31a121c27af8d022fbc2bbf7a0567ddbc 100644 (file)
@@ -1456,7 +1456,7 @@ static bool share_mode_entry_get(
 }
 
 static size_t share_mode_entry_find(
-       uint8_t *data,
+       const uint8_t *data,
        size_t num_share_modes,
        struct server_id pid,
        uint64_t share_file_id,