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)
Wed, Oct 8, 8:00 AM
Unknown Object (File)
Thu, Oct 2, 2:24 AM
Unknown Object (File)
Wed, Oct 1, 7:35 AM
Unknown Object (File)
Sun, Sep 28, 11:05 PM
Unknown Object (File)
Sat, Sep 20, 6:09 AM
Unknown Object (File)
Aug 31 2025, 1:04 PM
Unknown Object (File)
Aug 22 2025, 1:51 AM
Unknown Object (File)
Aug 22 2025, 1:50 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