summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-06-03 21:49:12 +0200
committerAndreas Schneider <asn@samba.org>2014-07-09 17:44:23 +0200
commit2fb911049a5d5aaa51597458ee382b75121a6cef (patch)
tree5d73fd3d7524ae12c062c20c2f3e6bd94776f4ea /src
parente520bb2cfb189750fd8656431156d44d7c3e3f91 (diff)
downloadsocket_wrapper-2fb911049a5d5aaa51597458ee382b75121a6cef.tar.gz
socket_wrapper-2fb911049a5d5aaa51597458ee382b75121a6cef.tar.xz
socket_wrapper-2fb911049a5d5aaa51597458ee382b75121a6cef.zip
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 '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 170e962..f53f0a1 100644
--- a/src/socket_wrapper.c
+++ b/src/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;