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
F132280073: D27581.id80739.diff
Wed, Oct 15, 11:35 AM
F132280066: D27581.id80610.diff
Wed, Oct 15, 11:35 AM
F132280065: D27581.id.diff
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