swrap: fix another discard const warning in swrap_bind()
authorMichael Adam <obnox@samba.org>
Thu, 2 Oct 2014 05:03:22 +0000 (07:03 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 2 Oct 2014 07:35:10 +0000 (09:35 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/socket_wrapper/socket_wrapper.c

index f53f0a13346d12fbc6eb6ee083a28993d2e6fa1e..7ee5b6410658dd03c27dc70c0ecbb8e3fffe6426 100644 (file)
@@ -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;