]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Move static strings to the .text segment
authorVolker Lendecke <vl@samba.org>
Wed, 17 Aug 2022 05:56:18 +0000 (07:56 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 26 Aug 2022 18:54:37 +0000 (18:54 +0000)
We don't need to copy these to the stack, this saves 200 bytes of .text

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

index e0e328a9a694e1eb60b4a3f3afe7ed4602017042..58ee4965220f7ce10de8295a88cb05c90447e30b 100644 (file)
@@ -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"