From c2a779f50e8694f20fb06b6e05bc24678d47b7d6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Aug 2019 21:41:22 +0200 Subject: [PATCH] smbd: Make "lease" const in create_file_default() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/open.c | 2 +- source3/smbd/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/open.c b/source3/smbd/open.c index a2336d7819b..d07bebc376d 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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, diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 0fde9b78fb0..5947d9ab6f2 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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, -- 2.47.3