summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-18 01:31:44 +0200
committerVolker Lendecke <vlendec@samba.org>2011-09-18 17:24:22 +0200
commit120b1392d3e6bc0c7a3e25d22df5121819462730 (patch)
treee1bdd8c1c6e9828a23f8b1ccd94001dbf46ab0f5 /lib
parentdea2bd5b9b1fb99329f644b58682ca3f38e7570c (diff)
downloadsamba-120b1392d3e6bc0c7a3e25d22df5121819462730.tar.gz
samba-120b1392d3e6bc0c7a3e25d22df5121819462730.tar.bz2
samba-120b1392d3e6bc0c7a3e25d22df5121819462730.zip
swrap: Fix a c++ warning
Diffstat (limited to 'lib')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 946980963e..ddfc74f674 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -2198,7 +2198,8 @@ _PUBLIC_ ssize_t swrap_sendto(int s, const void *buf, size_t len, int flags, con
return len;
}
- ret = real_sendto(s, buf, len, flags, msg.msg_name, msg.msg_namelen);
+ ret = real_sendto(s, buf, len, flags, (struct sockaddr *)msg.msg_name,
+ msg.msg_namelen);
swrap_sendmsg_after(si, &msg, to, ret);