]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Save some .data bytes with a const array
authorVolker Lendecke <vl@samba.org>
Mon, 18 Nov 2024 11:20:19 +0000 (12:20 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 19 Nov 2024 18:11:29 +0000 (18:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/smb/util.c

index 473b479a2abf60cb28ee4374b5d90cb6dda82213..4861c13dd820c3515d304f6f0a9aac7dae7d28f2 100644 (file)
@@ -171,7 +171,7 @@ mode_t wire_perms_to_unix(uint32_t perms)
  * never change.
  ****************************************************************************/
 
-static mode_t unix_filetypes[] =
+static const mode_t unix_filetypes[] =
        {S_IFREG, S_IFDIR, S_IFLNK, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK};
 
 mode_t wire_filetype_to_unix(uint32_t wire_type)