]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix the definedness handling of the last argument of sys_socketpair.
authorJulian Seward <jseward@acm.org>
Mon, 8 Mar 2010 14:45:26 +0000 (14:45 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 8 Mar 2010 14:45:26 +0000 (14:45 +0000)
commit578d74d4fad163ff3597a3d8555ea01b20869293
tree9e1da990f8f4f687786e4ccd844aa8fa07a3d7f2
parent8cbb57521935baf933638e6cec98a3a9eb9a8047
Fix the definedness handling of the last argument of sys_socketpair.
The last argument is really a pointer to an array of two ints and so
we need to say it is an int* and not an int [2].  This just happens to
work on amd64-linux because sizeof(int [2]) == 8 == sizeof(int*).  On
arm-linux it duly craps out w/ an assertion because sizeof(int [2]) !=
sizeof(UWord).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11083
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c