From: Volker Lendecke Date: Fri, 7 Oct 2022 09:55:18 +0000 (+0200) Subject: smbd: Apply some const to a variable that's never changed X-Git-Tag: talloc-2.4.0~623 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7ad454860fb6866fff2f7e075f9c8f64afa0c1;p=thirdparty%2Fsamba.git smbd: Apply some const to a variable that's never changed Probably doesn't do much in compiled code, but looks cleaner to me Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c2697f4732e..eca6f1f8eab 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1325,7 +1325,7 @@ static NTSTATUS open_file(struct smb_request *req, int accmode = (flags & O_ACCMODE); int local_flags = flags; bool file_existed = VALID_STAT(fsp->fsp_name->st); - uint32_t need_fd_mask = + const uint32_t need_fd_mask = FILE_READ_DATA | FILE_WRITE_DATA | FILE_APPEND_DATA |