diff options
author | Michael Adam <obnox@samba.org> | 2014-10-02 07:03:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-02 09:35:10 +0200 |
commit | 616364378da073f841d46fb299c81adb05d5222d (patch) | |
tree | 33e450afcda03a5e174c4cc1becda108df777c8d /lib | |
parent | f6fe9a997d2f5a1c504ea53886e00cfb33ec76d0 (diff) | |
download | samba-616364378da073f841d46fb299c81adb05d5222d.tar.gz |
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 'lib')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index f53f0a13346..7ee5b641065 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/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; |