libcli: Make "attr_strs" static
authorVolker Lendecke <vl@samba.org>
Thu, 10 Nov 2022 10:22:13 +0000 (11:22 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 22 Nov 2022 18:27:33 +0000 (18:27 +0000)
This saves 70 bytes of .text, we don't need this on the stack.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/util.c

index e1c0f124236a58bff1d667c373a0f9e940796c62..c7b51ff84dba678b9a548fbbce386b1ae4a74bdf 100644 (file)
@@ -64,7 +64,7 @@ const char *smb_protocol_types_string(enum protocol_types protocol)
 char *attrib_string(TALLOC_CTX *mem_ctx, uint32_t attrib)
 {
        size_t i, len;
-       const struct {
+       static const struct {
                char c;
                uint16_t attr;
        } attr_strs[] = {