1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

lib: Avoid a pointless static variable

Saves a few bytes of .text

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2017-11-13 16:15:42 +01:00 committed by Jeremy Allison
parent 03be840a7a
commit 2a86876c22

View File

@ -44,7 +44,7 @@ void zero_sockaddr(struct sockaddr_storage *pss)
static char *normalize_ipv6_literal(const char *str, char *buf, size_t *_len)
{
#define IPv6_LITERAL_NET ".ipv6-literal.net"
static const size_t llen = sizeof(IPv6_LITERAL_NET) - 1;
const size_t llen = sizeof(IPv6_LITERAL_NET) - 1;
size_t len = *_len;
int cmp;
size_t i;