summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-02 07:02:36 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-10-02 09:35:10 +0200
commitf6fe9a997d2f5a1c504ea53886e00cfb33ec76d0 (patch)
treea37fe5560b28fcbf2744c462e492b56d97512c7b /lib
parentbebbd289859cff50d63cdbe76d214b67fd33e3f8 (diff)
downloadsamba-f6fe9a997d2f5a1c504ea53886e00cfb33ec76d0.tar.gz
swrap: fix 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 170e962a994..f53f0a13346 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -2846,7 +2846,7 @@ static int swrap_bind(int s, const struct sockaddr *myaddr, socklen_t addrlen)
break;
}
- sin = (struct sockaddr_in *)myaddr;
+ sin = (const struct sockaddr_in *)myaddr;
if (sin->sin_family != AF_INET) {
bind_error = EAFNOSUPPORT;