]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use more standard types for manipulating pointers.
authorjhb <jhb@FreeBSD.org>
Wed, 16 Dec 2020 00:27:28 +0000 (00:27 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 16 Dec 2020 00:27:28 +0000 (00:27 +0000)
commit12b9bdd9268e8ed6fa708e8ebb6d9e1bfecb35f3
tree3d15b6711df20b94d3f7d4cce1f26a409842fb8c
parent26cb63ec57837387ca62083a0711a0e92b2ef00b
Use more standard types for manipulating pointers.

- Use a uintptr_t cast to get the virtual address of a pointer in
  USB_P2U() instead of a ptrdiff_t.

- Add offsets to a char * pointer directly without roundtripping the
  pointer through a ptrdiff_t in USB_ADD_BYTES().

Reviewed by: imp, hselasky
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27581
sys/dev/usb/usb_core.h