Commit [e41139] Maximize Restore History

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.

Dmitry V. Levin Dmitry V. Levin 2014-06-05

changed tests/stack-fcall.c
changed tests/strace-k.test
changed unwind.c
tests/stack-fcall.c Diff Switch to side-by-side view
Loading...
tests/strace-k.test Diff Switch to side-by-side view
Loading...
unwind.c Diff Switch to side-by-side view
Loading...