Page MenuHomeFreeBSD

Use more standard types for manipulating pointers.
ClosedPublic

Authored by jhb on Dec 11 2020, 9:26 PM.
Tags
None
Referenced Files
F132330195: D27581.id.diff
Wed, Oct 15, 11:18 PM
Unknown Object (File)
Wed, Oct 15, 11:35 AM
Unknown Object (File)
Wed, Oct 15, 11:35 AM
Unknown Object (File)
Wed, Oct 15, 11:35 AM
Unknown Object (File)
Wed, Oct 15, 12:39 AM
Unknown Object (File)
Wed, Oct 8, 8:00 AM
Unknown Object (File)
Thu, Oct 2, 2:24 AM
Unknown Object (File)
Wed, Oct 1, 7:35 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