]> granicus.if.org Git - strace/commit
Preliminary simplifications in mmap functions
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 18 Feb 2013 01:36:36 +0000 (02:36 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 18 Feb 2013 01:36:36 +0000 (02:36 +0100)
commit923255cbe89bd75cedddd4d80a3b446eae4b6700
tree690a95638fcd660637d4b9061311d022ba3631fa
parentc9d0fc0a63d5b425d6a4e9fedb4cb7a8e3129d6c
Preliminary simplifications in mmap functions

* mem.c: Move "define sys_mmap64 sys_mmap" from the top
to the only place it affects.
(print_mmap): Make offset argument unsigned, for safer implicit conversions.
(sys_old_mmap): [IA64] use unsigned narrow_arg[].
Cast u_arg[5] (offset param) to unsigned long, to prevent erroneous signed
expansion.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
mem.c