From: Volker Lendecke Date: Wed, 29 Dec 2021 13:46:14 +0000 (+0100) Subject: ctdb-protocol: Save 50 bytes .text segment X-Git-Tag: tdb-1.4.6~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=820b0a63ccaceb4d66b18e3bcd585400a0b99ed2;p=thirdparty%2Fsamba.git 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 Reviewed-by: Martin Schwenke --- 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 };