diff options
author | Volker Lendecke <vl@samba.org> | 2021-12-29 14:46:14 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2022-01-13 16:13:38 +0000 |
commit | 820b0a63ccaceb4d66b18e3bcd585400a0b99ed2 (patch) | |
tree | 9ae0bed69bf36e7426ebe536589e473c2a6a9562 | |
parent | baaedd69b3e02cdef06353bd5a21a5c5e6079604 (diff) | |
download | samba-820b0a63ccaceb4d66b18e3bcd585400a0b99ed2.tar.gz |
ctdb-protocol: Save 50 bytes .text segment
Having this as a small static .text is simpler than having to create
this on the stack.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | ctdb/protocol/protocol_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/protocol/protocol_util.c b/ctdb/protocol/protocol_util.c index 1f1d874167a..0a0998f1847 100644 --- a/ctdb/protocol/protocol_util.c +++ b/ctdb/protocol/protocol_util.c @@ -237,7 +237,7 @@ static int ip_from_string(const char *str, ctdb_sock_addr *addr) if (p == NULL) { ret = ipv4_from_string(str, &addr->ip); } else { - uint8_t ipv4_mapped_prefix[12] = { + static const uint8_t ipv4_mapped_prefix[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff }; |