]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
truss: centralize pointer-constructing casts.
authorbrooks <brooks@FreeBSD.org>
Thu, 31 Oct 2019 22:29:13 +0000 (22:29 +0000)
committerbrooks <brooks@FreeBSD.org>
Thu, 31 Oct 2019 22:29:13 +0000 (22:29 +0000)
commit6c69c93893009837c79bc4a11c58577cdb936d53
treeff318d722b85aa0a6fb22d8dba4e3952fcb489c0
parent15ff2564d18f8073a51e4033299278532b328bfa
truss: centralize pointer-constructing casts.

In nearly all cases, the caller has a uintptr_t compatible argument so
this eliminates a large number of casts.

Add a print_pointer function to centralize printing pointers.

Reviewed by: jhb
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D22212
usr.bin/truss/syscalls.c