diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-26 19:26:23 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-27 16:35:31 +0100 |
commit | 11cf4e80748af05dd6c8f1d30609a5485bf28372 (patch) | |
tree | 46520c787506bd925a0f142dc92bd141ec736939 /libc/sysdeps/linux/common/__rt_sigtimedwait.c | |
parent | 8ccf7c3e8c725e9fc29ad0f5accebb127c9ea246 (diff) |
fixup gcc warnings
Remove following warning from common code:
warning: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'libc/sysdeps/linux/common/__rt_sigtimedwait.c')
-rw-r--r-- | libc/sysdeps/linux/common/__rt_sigtimedwait.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |