git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8897474
)
swrap: Remove unused sockaddr_dup() function.
author
Andreas Schneider
<asn@samba.org>
Thu, 2 Oct 2014 05:17:42 +0000
(07:17 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Thu, 2 Oct 2014 07:35:10 +0000
(09:35 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/socket_wrapper/socket_wrapper.c
patch
|
blob
|
history
diff --git
a/lib/socket_wrapper/socket_wrapper.c
b/lib/socket_wrapper/socket_wrapper.c
index f39a15122673fcd98e7a421870aae2b04042d2a3..fd0980fb733fad9843a1a143013792b15f3a5ef8 100644
(file)
--- a/
lib/socket_wrapper/socket_wrapper.c
+++ b/
lib/socket_wrapper/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) {