]> granicus.if.org Git - strace/commit
unwind: fix build on 32-bit architectures
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 5 Jun 2014 14:37:04 +0000 (14:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 5 Jun 2014 15:42:05 +0000 (15:42 +0000)
commite4113974893293c82f177fe4195cac0a5b70465a
treee8d38fc0fd622dedbc3fbdfa90cbc7ac0d26c432
parent6e7ba0d8fe2fc31ea852a7fb7f380c22c2a9bdd2
unwind: fix build on 32-bit architectures

Fix compilation warnings in unwind.c on 32-bit architectures.
On some architectures getuid is actually getuid32, so change the test
to use getpid instead of getuid.

* unwind.c (STACK_ENTRY_SYMBOL_FMT): Explicitly cast function_off_set
to unsigned long.
(queue_put_error): Change the 3rd argument's type to unsigned long.
* tests/stack-fcall.c (f1): Use getpid instead of getuid.
* tests/strace-k.test: Likewise.
tests/stack-fcall.c
tests/strace-k.test
unwind.c