aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/sendfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/sendfd.c')
-rw-r--r--src/lib9/sendfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib9/sendfd.c b/src/lib9/sendfd.c
index b3a2448f..4c4aa7f0 100644
--- a/src/lib9/sendfd.c
+++ b/src/lib9/sendfd.c
@@ -34,7 +34,7 @@ sendfd(int s, int fd)
sfd.cmsg.cmsg_type = SCM_RIGHTS;
sfd.fd = fd;
- msg.msg_control = &sfd;
+ msg.msg_control = (caddr_t)&sfd;
msg.msg_controllen = sizeof sfd;
if((n=sendmsg(s, &msg, 0)) != iov.iov_len)
@@ -66,7 +66,7 @@ recvfd(int s)
sfd.cmsg.cmsg_level = SOL_SOCKET;
sfd.cmsg.cmsg_type = SCM_RIGHTS;
- msg.msg_control = &sfd;
+ msg.msg_control = (caddr_t)&sfd;
msg.msg_controllen = sizeof sfd;
if((n=recvmsg(s, &msg, 0)) < 0)