From c047c6601f735c2a89b290a7f10124c5432000b9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 17 Aug 2022 07:56:18 +0200 Subject: [PATCH] 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 --- source3/libsmb/libsmb_xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.47.3