]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use more standard types for manipulating pointers.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 16 Dec 2020 00:27:28 +0000 (00:27 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 16 Dec 2020 00:27:28 +0000 (00:27 +0000)
commit3ab53b27e318f065bd133bccdf022ec0e994d4d0
tree3d15b6711df20b94d3f7d4cce1f26a409842fb8c
parentaa54c24283a4b2ec9e28a45d9c9d13d98ce91ad1
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