Page MenuHomeFreeBSD

hwpmc_mod.c: misc style cleanup
ClosedPublic

Authored by mhorne on Jun 13 2023, 5:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 3:54 AM
Unknown Object (File)
Sep 24 2024, 3:32 AM
Unknown Object (File)
Sep 23 2024, 2:24 PM
Unknown Object (File)
Sep 23 2024, 6:11 AM
Unknown Object (File)
Sep 22 2024, 7:41 PM
Unknown Object (File)
Sep 22 2024, 3:03 AM
Unknown Object (File)
Sep 21 2024, 1:09 PM
Unknown Object (File)
Sep 12 2024, 9:48 PM
Subscribers

Details

Summary

Everything else I found worthy of adjustment.

  • Order local variable declarations per style(9)
  • Make use of __unused annotations rather than cast to void
  • Remove unnecessary casts
  • Add (void) casts to PMC class methods where the return value is ignored
  • A couple instances of reordering statements for clarity
  • Prefer bool type where applicable
  • unsigned int -> u_int
  • Use uintmax_t/%j in printf calls
  • Formatting of comments

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 52026
Build 48917: arc lint + arc unit