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)
Mon, Sep 29, 11:28 PM
Unknown Object (File)
Thu, Sep 25, 10:10 AM
Unknown Object (File)
Sep 4 2025, 12:30 PM
Unknown Object (File)
Sep 4 2025, 5:17 AM
Unknown Object (File)
Aug 19 2025, 10:46 AM
Unknown Object (File)
Aug 16 2025, 2:32 PM
Unknown Object (File)
Aug 14 2025, 11:13 PM
Unknown Object (File)
Jul 29 2025, 1:10 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.