Page MenuHomeFreeBSD

hwpmc_mod.c: misc style cleanup
ClosedPublic

Authored by mhorne on Jun 13 2023, 5:55 PM.
Tags
None
Referenced Files
F132244117: D40517.id123165.diff
Wed, Oct 15, 3:28 AM
F132244116: D40517.id.diff
Wed, Oct 15, 3:28 AM
F132244115: D40517.id123228.diff
Wed, Oct 15, 3:28 AM
Unknown Object (File)
Tue, Oct 14, 6:19 PM
Unknown Object (File)
Wed, Oct 1, 9:49 AM
Unknown Object (File)
Fri, Sep 26, 12:41 AM
Unknown Object (File)
Wed, Sep 17, 8:32 PM
Unknown Object (File)
Sep 15 2025, 1:21 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