aboutsummaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-03-10 14:59:03 -0800
committerRuss Cox <rsc@swtch.com>2010-03-10 14:59:03 -0800
commit96898a81415df2368dfdbcf2b756982ba420a94f (patch)
tree3e7f69c937ca7ab208e9d61e45936b98dc048e91 /src/lib9
parent0c9c620f39e56c42802504003fd05664aba670a4 (diff)
downloadplan9port-96898a81415df2368dfdbcf2b756982ba420a94f.tar.gz
plan9port-96898a81415df2368dfdbcf2b756982ba420a94f.tar.bz2
plan9port-96898a81415df2368dfdbcf2b756982ba420a94f.zip
more type-punned pointers
R=rsc http://codereview.appspot.com/376045
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/sendfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/sendfd.c b/src/lib9/sendfd.c
index b5e332ca..e2abb759 100644
--- a/src/lib9/sendfd.c
+++ b/src/lib9/sendfd.c
@@ -83,6 +83,6 @@ recvfd(int s)
return -1;
}
cmsg = CMSG_FIRSTHDR(&msg);
- fd = *(int*)CMSG_DATA(cmsg);
+ memmove(&fd, CMSG_DATA(cmsg), sizeof(int));
return fd;
}