]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Apply some const to a variable that's never changed
authorVolker Lendecke <vl@samba.org>
Fri, 7 Oct 2022 09:55:18 +0000 (11:55 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 27 Oct 2022 18:18:36 +0000 (18:18 +0000)
Probably doesn't do much in compiled code, but looks cleaner to me

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index c2697f4732e69a113164d0418377f3e6464fb83d..eca6f1f8eabfdb55e50fb15616a3b85a22be0f75 100644 (file)
@@ -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 |