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)
Mon, May 20, 1:39 PM
Unknown Object (File)
Apr 26 2024, 4:25 PM
Unknown Object (File)
Apr 26 2024, 4:25 PM
Unknown Object (File)
Apr 26 2024, 11:06 AM
Unknown Object (File)
Apr 26 2024, 6:05 AM
Unknown Object (File)
Feb 8 2024, 3:59 AM
Unknown Object (File)
Jan 14 2024, 9:02 AM
Unknown Object (File)
Dec 22 2023, 9:35 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