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)
Wed, Oct 15, 7:38 AM
Unknown Object (File)
Fri, Oct 10, 1:31 AM
Unknown Object (File)
Sun, Sep 28, 7:46 PM
Unknown Object (File)
Sun, Sep 21, 4:34 AM
Unknown Object (File)
Fri, Sep 19, 3:42 PM
Unknown Object (File)
Sep 16 2025, 9:20 PM
Unknown Object (File)
Sep 12 2025, 7:57 PM
Unknown Object (File)
Sep 12 2025, 12:36 PM
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.