git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8c602d
)
ctdb: Fix the build on FreeBSD 10.1
author
Volker Lendecke
<vl@samba.org>
Wed, 19 Aug 2015 05:33:48 +0000
(07:33 +0200)
committer
Ralph Böhme
<slow@samba.org>
Wed, 19 Aug 2015 06:17:23 +0000
(08:17 +0200)
We get sockaddr_in directly in parse_ipv4
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
ctdb/common/system_util.c
patch
|
blob
|
history
diff --git
a/ctdb/common/system_util.c
b/ctdb/common/system_util.c
index 1ae0bae80396ea8d28e38ca8ee61c6138ebab867..663df6e6b579eabc7a5e254accc2130468157aac 100644
(file)
--- a/
ctdb/common/system_util.c
+++ b/
ctdb/common/system_util.c
@@
-157,7
+157,7
@@
bool parse_ipv4(const char *s, unsigned port, struct sockaddr_in *sin)
}
#ifdef HAVE_SOCK_SIN_LEN
- sin->
ip.
sin_len = sizeof(*sin);
+ sin->sin_len = sizeof(*sin);
#endif
return true;
}