Page MenuHomeFreeBSD

ctld: Use bool in uclparse.c
ClosedPublic

Authored by jhb on Jan 22 2025, 7:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 23, 4:07 AM
Unknown Object (File)
Tue, Feb 18, 9:57 AM
Unknown Object (File)
Sat, Feb 15, 12:23 AM
Unknown Object (File)
Fri, Feb 14, 10:57 PM
Unknown Object (File)
Thu, Feb 13, 11:02 PM
Unknown Object (File)
Thu, Feb 13, 6:59 PM
Unknown Object (File)
Mon, Feb 10, 11:04 AM
Unknown Object (File)
Mon, Feb 10, 10:12 AM
Subscribers

Details

Summary

Previously these functions all returned either 0 or 1, but 0 was
success and 1 was failure. Use a bool where false indicates failure
instead which is more readable.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jan 22 2025, 8:04 PM

I guess instead of 1 could be expected some error codes, that just never happened.

This revision now requires review to proceed.Jan 23 2025, 7:14 PM
This revision is now accepted and ready to land.Jan 23 2025, 7:15 PM
This revision was automatically updated to reflect the committed changes.