Page MenuHomeFreeBSD

ctld: Some bool-related cleanups
ClosedPublic

Authored by jhb on Feb 11 2025, 1:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 21, 2:47 AM
Unknown Object (File)
Thu, Nov 13, 8:33 PM
Unknown Object (File)
Tue, Nov 4, 2:50 AM
Unknown Object (File)
Tue, Nov 4, 2:50 AM
Unknown Object (File)
Tue, Nov 4, 2:46 AM
Unknown Object (File)
Tue, Nov 4, 2:44 AM
Unknown Object (File)
Sat, Nov 1, 10:48 AM
Unknown Object (File)
Sat, Nov 1, 10:48 AM
Subscribers

Details

Summary
  • Convert a few variables from int to bool
  • Return bool instead of inverted 0/1 from configuration parsing functions and the auth check functions
  • Invert the existing dont_daemonize bool into a daemonize boolx

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Feb 11 2025, 1:20 AM

Thanks for doing all this cleanup.

usr.sbin/ctld/ctld.c
1274

Huh, the int-bool relationship was backwards for this function. Awkward.

This revision is now accepted and ready to land.Feb 11 2025, 6:18 PM
This revision was automatically updated to reflect the committed changes.