aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/sendfd.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-02 17:34:15 +0000
committerrsc <devnull@localhost>2004-03-02 17:34:15 +0000
commit8f314994dbcc11b2d8397535ce8b0cf9d84150d0 (patch)
tree073d6711e464fc28770e1b450223b5b8cd4b447e /src/lib9/sendfd.c
parent53dbac948575b07e95d184bbfbe4d8953c5ccc4c (diff)
downloadplan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.gz
plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.tar.bz2
plan9port-8f314994dbcc11b2d8397535ce8b0cf9d84150d0.zip
More Mac tweaks.
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)