]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make "lease" const in create_file_default()
authorVolker Lendecke <vl@samba.org>
Wed, 7 Aug 2019 19:41:22 +0000 (21:41 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 9 Aug 2019 22:48:46 +0000 (22:48 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
source3/smbd/proto.h

index a2336d7819bad6807508e799e2bc6441b2f8be19..d07bebc376d53a2de8cf0a4ab687f5562f94db2a 100644 (file)
@@ -5512,7 +5512,7 @@ NTSTATUS create_file_default(connection_struct *conn,
                             uint32_t create_options,
                             uint32_t file_attributes,
                             uint32_t oplock_request,
-                            struct smb2_lease *lease,
+                            const struct smb2_lease *lease,
                             uint64_t allocation_size,
                             uint32_t private_flags,
                             struct security_descriptor *sd,
index 0fde9b78fb085fb6e23045f30711408addd7d5bf..5947d9ab6f234429d01be7b22402f718c5f3fbc1 100644 (file)
@@ -703,7 +703,7 @@ NTSTATUS create_file_default(connection_struct *conn,
                             uint32_t create_options,
                             uint32_t file_attributes,
                             uint32_t oplock_request,
-                            struct smb2_lease *lease,
+                            const struct smb2_lease *lease,
                             uint64_t allocation_size,
                             uint32_t private_flags,
                             struct security_descriptor *sd,