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:
dea2bd5
)
swrap: Fix a c++ warning
author
Volker Lendecke
<vl@samba.org>
Sat, 17 Sep 2011 23:31:44 +0000
(
01:31
+0200)
committer
Volker Lendecke
<vlendec@samba.org>
Sun, 18 Sep 2011 15:24:22 +0000
(17:24 +0200)
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 946980963edce71d1cf399bcecc240ba9af99e41..ddfc74f674043d9dd1a61d815ea781850f9e355d 100644
(file)
--- 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);