HomeFreeBSD

cred: make the refcount signed

Description

cred: make the refcount signed

There are asserts on the count being > 0, but they are less useful than
they can be because the type itself is unsigned.

The kernel is compiled with -frapv, making wraparound perfectly defined.

Differential Revision: https://reviews.freebsd.org/D39220

Details

Provenance
mjgAuthored on Mar 22 2023, 9:44 PM
Differential Revision
D39220: cred: convert the refcount from int to long
Parents
rG9fbeeb6e3831: contrib/tzdata: import tzdata 2023c
Branches
Unknown
Tags
Unknown