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)
Dec 12 2023, 7:56 PM
Unknown Object (File)
Nov 18 2023, 7:59 AM
Unknown Object (File)
Nov 7 2023, 10:44 AM
Unknown Object (File)
Nov 5 2023, 6:03 PM
Unknown Object (File)
Nov 3 2023, 5:57 PM
Unknown Object (File)
Nov 3 2023, 5:57 PM
Unknown Object (File)
Nov 3 2023, 5:57 PM
Unknown Object (File)
Nov 2 2023, 11:15 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