Page MenuHomeFreeBSD

ctld: Some bool-related cleanups
ClosedPublic

Authored by jhb on Tue, Feb 11, 1:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 16, 7:59 PM
Unknown Object (File)
Wed, Feb 12, 8:49 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.Tue, Feb 11, 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.Tue, Feb 11, 6:18 PM
This revision was automatically updated to reflect the committed changes.