Page MenuHomeFreeBSD

Use more standard types for manipulating pointers.
ClosedPublic

Authored by jhb on Dec 11 2020, 9:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 7:05 AM
Unknown Object (File)
Wed, Oct 30, 12:25 PM
Unknown Object (File)
Oct 7 2024, 3:03 AM
Unknown Object (File)
Oct 7 2024, 3:03 AM
Unknown Object (File)
Oct 7 2024, 3:03 AM
Unknown Object (File)
Oct 7 2024, 2:42 AM
Unknown Object (File)
Oct 3 2024, 9:38 AM
Unknown Object (File)
Oct 3 2024, 9:04 AM

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
Lint Not Applicable
Unit
Tests Not Applicable