Page MenuHomeFreeBSD

cp: change flags from integers to booleans
AcceptedPublic

Authored by ehem_freebsd_m5p.com on Feb 27 2021, 1:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 28, 5:26 AM
Unknown Object (File)
Oct 25 2025, 4:35 PM
Unknown Object (File)
Oct 25 2025, 2:31 PM
Unknown Object (File)
Oct 20 2025, 1:06 AM
Unknown Object (File)
Oct 20 2025, 1:05 AM
Unknown Object (File)
Oct 20 2025, 1:05 AM
Unknown Object (File)
Oct 19 2025, 11:06 AM
Unknown Object (File)
Oct 18 2025, 11:49 AM

Details

Reviewers
asomers
Summary

Using int for boolean values is a long tradition. Since there is now
substantial standardization for boolean types in C, use the standards
and have these booleans be bool instead.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37425
Build 34314: arc lint + arc unit

Event Timeline

Hmm, seems arc diff doesn't quite work the way I thought it did...

cp: change flags from integers to booleans

Using int for boolean values is a long tradition. Since there is now
substantial standardization for boolean types in C, use the standards
and have these booleans be bool instead.

This revision is now accepted and ready to land.Feb 27 2021, 1:20 AM

Little bit of funkiness in the original differential due to learning about how Phabricator handles things. Update was simply chopping the squashed message back to what it should have been.