1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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>
This commit is contained in:
Volker Lendecke 2021-12-29 14:46:14 +01:00
parent baaedd69b3
commit 820b0a63cc

View File

@ -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
};