]> granicus.if.org Git - strace/commit
Fix explicit casts of signed integer types to unsigned long long
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 26 May 2016 10:12:17 +0000 (10:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 26 May 2016 14:44:13 +0000 (14:44 +0000)
commit84a979c9eea59658aabc9b7d547e642b090922be
tree8ae0878a7ecc706810ce880acc9f6105d61a1297
parent51507201ea2f6761cea264f026a9b40520e7a14a
Fix explicit casts of signed integer types to unsigned long long

* defs.h (widen_to_ull): New macro.
* dirent.c (print_old_dirent, SYS_FUNC(getdents)): Use it in place
of explicit casts to unsigned long long.
* io.c (print_lld_from_low_high_val): Likewise.
* lseek.c (SYS_FUNC(llseek)): Likewise.
* printsiginfo.c (print_si_info): Likewise.
* printstat.h (DO_PRINTSTAT): Likewise.
* sysinfo.c (SYS_FUNC(sysinfo)): Likewise.
* times.c (SYS_FUNC(times)): Likewise.
* fetch_struct_statfs.c (ASSIGN_NUMBER): Remove.
(fetch_struct_statfs, fetch_struct_statfs64): Replace ASSIGN_NUMBER
with widen_to_ull.
defs.h
dirent.c
fetch_struct_statfs.c
io.c
lseek.c
printsiginfo.c
printstat.h
sysinfo.c
times.c