From 11cf4e80748af05dd6c8f1d30609a5485bf28372 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 26 Nov 2016 19:26:23 +0100 Subject: fixup gcc warnings Remove following warning from common code: warning: ISO C90 forbids mixed declarations and code --- libc/sysdeps/linux/common/__rt_sigtimedwait.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/__rt_sigtimedwait.c') diff --git a/libc/sysdeps/linux/common/__rt_sigtimedwait.c b/libc/sysdeps/linux/common/__rt_sigtimedwait.c index 422a95201..9c74322ef 100644 --- a/libc/sysdeps/linux/common/__rt_sigtimedwait.c +++ b/libc/sysdeps/linux/common/__rt_sigtimedwait.c @@ -25,6 +25,9 @@ int __NC(sigtimedwait)(const sigset_t *set, siginfo_t *info, const struct timespec *timeout) { +# if defined SI_TKILL && defined SI_USER + int result; +# endif # ifdef SIGCANCEL sigset_t tmpset; @@ -50,7 +53,7 @@ int __NC(sigtimedwait)(const sigset_t *set, siginfo_t *info, /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ /* on uClibc we use the kernel sigset_t size */ - int result = INLINE_SYSCALL(rt_sigtimedwait, 4, set, info, + result = INLINE_SYSCALL(rt_sigtimedwait, 4, set, info, timeout, __SYSCALL_SIGSET_T_SIZE); /* The kernel generates a SI_TKILL code in si_code in case tkill is -- cgit v1.2.3