From: Volker Lendecke Date: Wed, 17 Aug 2022 05:56:18 +0000 (+0200) Subject: libsmb: Move static strings to the .text segment X-Git-Tag: talloc-2.4.0~1267 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c047c6601f735c2a89b290a7f10124c5432000b9;p=thirdparty%2Fsamba.git libsmb: Move static strings to the .text segment We don't need to copy these to the stack, this saves 200 bytes of .text Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c index e0e328a9a69..58ee4965220 100644 --- a/source3/libsmb/libsmb_xattr.c +++ b/source3/libsmb/libsmb_xattr.c @@ -2341,7 +2341,7 @@ SMBC_listxattr_ctx(SMBCCTX *context, * attribute names which actually exist for a file. Hmmm... */ size_t retsize; - const char supported_old[] = + static const char supported_old[] = "system.*\0" "system.*+\0" "system.nt_sec_desc.revision\0" @@ -2360,7 +2360,7 @@ SMBC_listxattr_ctx(SMBCCTX *context, "system.dos_attr.a_time\0" "system.dos_attr.m_time\0" ; - const char supported_new[] = + static const char supported_new[] = "system.*\0" "system.*+\0" "system.nt_sec_desc.revision\0"