Page MenuHomeFreeBSD

Use more standard types for manipulating pointers.
ClosedPublic

Authored by jhb on Dec 11 2020, 9:26 PM.

Details

Summary
  • 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().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.