summaryrefslogtreecommitdiff
path: root/source4/lib/socket_wrapper
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-30 13:54:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:25 -0500
commitcf0f4ec073b694e43daeeddf9aab51cd3e51fd2b (patch)
treeca60b67aac5c2f5eaf6373ad7aaf7aee38079e18 /source4/lib/socket_wrapper
parentab758f383dfd03f3c51f647829f14ecca6a9807c (diff)
downloadsamba-cf0f4ec073b694e43daeeddf9aab51cd3e51fd2b.tar.gz
samba-cf0f4ec073b694e43daeeddf9aab51cd3e51fd2b.tar.bz2
samba-cf0f4ec073b694e43daeeddf9aab51cd3e51fd2b.zip
r15358: Fix some compiler warnings / type safety. Found by tcc
(This used to be commit 12ba42de5886f9f4f9b1698476557e0c217d06f3)
Diffstat (limited to 'source4/lib/socket_wrapper')
-rw-r--r--source4/lib/socket_wrapper/socket_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c
index 6e6711834b..6bb7f6464f 100644
--- a/source4/lib/socket_wrapper/socket_wrapper.c
+++ b/source4/lib/socket_wrapper/socket_wrapper.c
@@ -462,7 +462,7 @@ _PUBLIC_ int swrap_accept(int s, struct sockaddr *addr, socklen_t *addrlen)
child_si->protocol = parent_si->protocol;
child_si->bound = 1;
- ret = real_getsockname(fd, &un_my_addr, &un_my_addrlen);
+ ret = real_getsockname(fd, (struct sockaddr *)&un_my_addr, &un_my_addrlen);
if (ret == -1) return ret;
ret = sockaddr_convert_from_un(child_si, &un_my_addr, un_my_addrlen,