diff options
author | Volker Lendecke <vl@samba.org> | 2011-09-18 01:31:44 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-09-18 17:24:22 +0200 |
commit | 120b1392d3e6bc0c7a3e25d22df5121819462730 (patch) | |
tree | e1bdd8c1c6e9828a23f8b1ccd94001dbf46ab0f5 /lib/socket_wrapper | |
parent | dea2bd5b9b1fb99329f644b58682ca3f38e7570c (diff) | |
download | samba-120b1392d3e6bc0c7a3e25d22df5121819462730.tar.gz samba-120b1392d3e6bc0c7a3e25d22df5121819462730.tar.bz2 samba-120b1392d3e6bc0c7a3e25d22df5121819462730.zip |
swrap: Fix a c++ warning
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 3 |
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); |