git.samba.org
/
obnox
/
cwrap
/
socket_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eedb8e7
)
swrap: Remove unused sockaddr_dup() function.
author
Andreas Schneider
<asn@samba.org>
Wed, 21 May 2014 13:15:38 +0000
(15:15 +0200)
committer
Andreas Schneider
<asn@samba.org>
Mon, 1 Sep 2014 08:19:15 +0000
(10:19 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/socket_wrapper.c
patch
|
blob
|
history
diff --git
a/src/socket_wrapper.c
b/src/socket_wrapper.c
index f39a15122673fcd98e7a421870aae2b04042d2a3..fd0980fb733fad9843a1a143013792b15f3a5ef8 100644
(file)
--- a/
src/socket_wrapper.c
+++ b/
src/socket_wrapper.c
@@
-822,13
+822,6
@@
static const struct in6_addr *swrap_ipv6(void)
}
#endif
-static struct sockaddr *sockaddr_dup(const void *data, socklen_t len)
-{
- struct sockaddr *ret = (struct sockaddr *)malloc(len);
- memcpy(ret, data, len);
- return ret;
-}
-
static void set_port(int family, int prt, struct swrap_address *addr)
{
switch (family) {