From: Volker Lendecke Date: Mon, 18 Nov 2024 11:20:19 +0000 (+0100) Subject: libsmb: Save some .data bytes with a const array X-Git-Tag: tdb-1.4.13~507 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63f380058f419febb92c15319e3e40cf094ae0b9;p=thirdparty%2Fsamba.git libsmb: Save some .data bytes with a const array Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/libcli/smb/util.c b/libcli/smb/util.c index 473b479a2ab..4861c13dd82 100644 --- a/libcli/smb/util.c +++ b/libcli/smb/util.c @@ -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)