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)
Tue, Apr 8, 1:01 PM
Unknown Object (File)
Thu, Mar 13, 9:55 PM
Unknown Object (File)
Mar 9 2025, 10:22 PM
Unknown Object (File)
Mar 6 2025, 6:13 PM
Unknown Object (File)
Feb 27 2025, 9:44 AM
Unknown Object (File)
Feb 22 2025, 11:12 PM
Unknown Object (File)
Feb 22 2025, 2:58 PM
Unknown Object (File)
Feb 21 2025, 7:02 PM
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.