mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
powerpc: Fix compiler warning in some syscalls.
Commitf4491417cc
introduced some warnings when building GLIBC with GCC 5.x. similar to those fixed by commitdd6e8af6ba
. This patch fixes those warnings. * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the first member of struct sv in syscall macro.
This commit is contained in:
parent
81503d1e44
commit
41a4f0d493
@ -1,3 +1,8 @@
|
|||||||
|
2015-09-04 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
|
||||||
|
first member of struct sv in syscall macro.
|
||||||
|
|
||||||
2015-09-04 Joseph Myers <joseph@codesourcery.com>
|
2015-09-04 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #14912]
|
[BZ #14912]
|
||||||
|
@ -27,7 +27,7 @@ int
|
|||||||
__socketpair (int domain, int type, int protocol, int sv[2])
|
__socketpair (int domain, int type, int protocol, int sv[2])
|
||||||
{
|
{
|
||||||
#ifdef __ASSUME_SOCKETPAIR_SYSCALL
|
#ifdef __ASSUME_SOCKETPAIR_SYSCALL
|
||||||
return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, sv);
|
return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, &sv[0]);
|
||||||
#else
|
#else
|
||||||
return SOCKETCALL (socketpair, domain, type, protocol, sv);
|
return SOCKETCALL (socketpair, domain, type, protocol, sv);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user