git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bebbd28
)
swrap: fix discard const warning in swrap_bind()
author
Michael Adam
<obnox@samba.org>
Thu, 2 Oct 2014 05:02:36 +0000
(07:02 +0200)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/lib/socket_wrapper/socket_wrapper.c
b/lib/socket_wrapper/socket_wrapper.c
index 170e962a99481a21f4beb1fb3c4732350055426a..f53f0a13346d12fbc6eb6ee083a28993d2e6fa1e 100644
(file)
--- 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;