Page MenuHomeFreeBSD

libthr: thr_attr.c: More style and clarity fixes
ClosedPublic

Authored by olce on Jan 5 2024, 2:18 PM.
Tags
None
Referenced Files
F131651392: D43327.diff
Fri, Oct 10, 1:35 AM
Unknown Object (File)
Thu, Sep 25, 7:57 AM
Unknown Object (File)
Sun, Sep 14, 1:23 PM
Unknown Object (File)
Sep 5 2025, 7:35 AM
Unknown Object (File)
Aug 31 2025, 3:01 PM
Unknown Object (File)
Aug 30 2025, 10:10 PM
Unknown Object (File)
Aug 17 2025, 11:20 PM
Unknown Object (File)
Aug 17 2025, 2:58 PM
Subscribers

Details

Summary

The change of argument for sizeof() (from a type to an object) is to be
consistent with the change done for the malloc() code just above in the
preceding commit touching this file.

Consider bit flags as integers and test whether they are set with an
explicit comparison with 0.

Use an explicit flag value (PTHREAD_SCOPE_SYSTEM) in place of a variable
that has this value at point of substitution.

All other changes are straightforward.

Suggested by: kib
MFC after: 2 weeks

Diff Detail

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