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)
Thu, Apr 9, 11:10 AM
Unknown Object (File)
Thu, Apr 9, 12:00 AM
Unknown Object (File)
Tue, Apr 7, 4:19 PM
Unknown Object (File)
Feb 8 2026, 7:45 AM
Unknown Object (File)
Feb 7 2026, 11:13 PM
Unknown Object (File)
Jan 31 2026, 12:36 PM
Unknown Object (File)
Jan 29 2026, 4:33 AM
Unknown Object (File)
Jan 28 2026, 4:09 AM
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 Not Applicable
Unit
Tests Not Applicable