diff options
author | Michael Adam <obnox@samba.org> | 2014-10-02 07:02:36 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-02 09:35:10 +0200 |
commit | f6fe9a997d2f5a1c504ea53886e00cfb33ec76d0 (patch) | |
tree | a37fe5560b28fcbf2744c462e492b56d97512c7b /lib | |
parent | bebbd289859cff50d63cdbe76d214b67fd33e3f8 (diff) | |
download | samba-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.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 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; |