summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-17 21:14:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-17 21:14:36 (GMT)
commit4b8608fe9f856a27b0afc25a13e91554a71416b7 (patch)
tree47d5c556a04615ac26b8273e95522c66c27d7caa /Modules
parent321b713d9b3ef5a54d43ade2b35223d33835fce7 (diff)
downloadcpython-4b8608fe9f856a27b0afc25a13e91554a71416b7.zip
cpython-4b8608fe9f856a27b0afc25a13e91554a71416b7.tar.gz
cpython-4b8608fe9f856a27b0afc25a13e91554a71416b7.tar.bz2
Merged revisions 85665 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85665 | benjamin.peterson | 2010-10-17 16:12:18 -0500 (Sun, 17 Oct 2010) | 1 line fix strict aliasing warnings ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_multiprocessing/multiprocessing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_multiprocessing/multiprocessing.c b/Modules/_multiprocessing/multiprocessing.c
index 6858146..7c4f52d 100644
--- a/Modules/_multiprocessing/multiprocessing.c
+++ b/Modules/_multiprocessing/multiprocessing.c
@@ -122,7 +122,7 @@ multiprocessing_sendfd(PyObject *self, PyObject *args)
cmsg->cmsg_type = SCM_RIGHTS;
cmsg->cmsg_len = CMSG_LEN(sizeof(int));
msg.msg_controllen = cmsg->cmsg_len;
- *(int*)CMSG_DATA(cmsg) = fd;
+ *CMSG_DATA(cmsg) = fd;
Py_BEGIN_ALLOW_THREADS
res = sendmsg(conn, &msg, 0);
@@ -165,7 +165,7 @@ multiprocessing_recvfd(PyObject *self, PyObject *args)
if (res < 0)
return PyErr_SetFromErrno(PyExc_OSError);
- fd = *(int*)CMSG_DATA(cmsg);
+ fd = *CMSG_DATA(cmsg);
return Py_BuildValue("i", fd);
}