From 41a4f0d493e98199d147be93431e74a932fd2b69 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Seo Date: Wed, 2 Sep 2015 22:04:23 -0300 Subject: powerpc: Fix compiler warning in some syscalls. Commit f4491417cc80b4a01e72e9d218af137765ee5918 introduced some warnings when building GLIBC with GCC 5.x. similar to those fixed by commit dd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93. This patch fixes those warnings. * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the first member of struct sv in syscall macro. --- sysdeps/unix/sysv/linux/socketpair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux') diff --git a/sysdeps/unix/sysv/linux/socketpair.c b/sysdeps/unix/sysv/linux/socketpair.c index 5c68970e6f..d40b5271c7 100644 --- a/sysdeps/unix/sysv/linux/socketpair.c +++ b/sysdeps/unix/sysv/linux/socketpair.c @@ -27,7 +27,7 @@ int __socketpair (int domain, int type, int protocol, int sv[2]) { #ifdef __ASSUME_SOCKETPAIR_SYSCALL - return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, sv); + return INLINE_SYSCALL (socketpair, 4, domain, type, protocol, &sv[0]); #else return SOCKETCALL (socketpair, domain, type, protocol, sv); #endif -- cgit 1.4.1