Page MenuHomeFreeBSD

hwpmc_mod.c: misc style cleanup
ClosedPublic

Authored by mhorne on Jun 13 2023, 5:55 PM.
Tags
None
Referenced Files
F163257108: D40517.id123165.diff
Tue, Jul 21, 12:07 PM
F163193075: D40517.id123228.diff
Mon, Jul 20, 10:33 PM
Unknown Object (File)
Sun, Jul 19, 2:07 PM
Unknown Object (File)
Thu, Jul 16, 1:31 AM
Unknown Object (File)
Wed, Jul 15, 2:57 AM
Unknown Object (File)
Tue, Jul 14, 5:35 PM
Unknown Object (File)
Thu, Jul 2, 11:26 PM
Unknown Object (File)
Wed, Jul 1, 2:06 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