summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-06-03 21:50:11 +0200
committerAndreas Schneider <asn@samba.org>2014-07-09 17:44:23 +0200
commit1fcf8726753f38651d009c63d12a179854b506b8 (patch)
tree4c313095963c8560f371a1d8ce00775509d4aa79 /src
parent2fb911049a5d5aaa51597458ee382b75121a6cef (diff)
downloadsocket_wrapper-1fcf8726753f38651d009c63d12a179854b506b8.tar.gz
socket_wrapper-1fcf8726753f38651d009c63d12a179854b506b8.tar.xz
socket_wrapper-1fcf8726753f38651d009c63d12a179854b506b8.zip
swrap: fix another discard const warning in swrap_bind()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index f53f0a1..7ee5b64 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -2869,7 +2869,7 @@ static int swrap_bind(int s, const struct sockaddr *myaddr, socklen_t addrlen)
break;
}
- sin6 = (struct sockaddr_in6 *)myaddr;
+ sin6 = (const struct sockaddr_in6 *)myaddr;
if (sin6->sin6_family != AF_INET6) {
bind_error = EAFNOSUPPORT;