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, Aug 12, 10:02 PM
Unknown Object (File)
Sat, Aug 8, 1:06 PM
Unknown Object (File)
Sun, Aug 2, 12:44 AM
Unknown Object (File)
Sat, Aug 1, 8:00 AM
Unknown Object (File)
Tue, Jul 28, 11:53 PM
Unknown Object (File)
Mon, Jul 27, 1:29 AM
Unknown Object (File)
Tue, Jul 21, 12:07 PM
Unknown Object (File)
Mon, Jul 20, 10:33 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 Not Applicable
Unit
Tests Not Applicable