git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03be840
)
lib: Avoid a pointless static variable
author
Volker Lendecke
<vl@samba.org>
Mon, 13 Nov 2017 15:15:42 +0000
(16:15 +0100)
committer
Jeremy Allison
<jra@samba.org>
Fri, 17 Nov 2017 23:09:15 +0000
(
00:09
+0100)
Saves a few bytes of .text
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util_net.c
patch
|
blob
|
history
diff --git
a/lib/util/util_net.c
b/lib/util/util_net.c
index cbc836cc54c37aa0a22bd98f2321c5571a2a8668..b3ed9f262feae9d74f053dac74a8c58519ea06c5 100644
(file)
--- a/
lib/util/util_net.c
+++ b/
lib/util/util_net.c
@@
-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;