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, Oct 4, 12:53 PM
Unknown Object (File)
Fri, Oct 2, 5:03 AM
Unknown Object (File)
Thu, Oct 1, 8:12 AM
Unknown Object (File)
Mon, Sep 28, 1:20 AM
Unknown Object (File)
Sat, Sep 26, 5:41 PM
Unknown Object (File)
Aug 31 2026, 10:15 AM
Unknown Object (File)
Aug 30 2026, 2:45 PM
Unknown Object (File)
Aug 25 2026, 10:16 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 61887
Build 58771: arc lint + arc unit

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.