HomeFreeBSD

Throw const on some strings

Description

Throw const on some strings

In C, const indicates to the reader that mutation will not occur.
It can also serve as a hint about ownership.

Add const in a few places where it makes sense.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #10997

Details

Provenance
freqlabsAuthored on Oct 3 2020, 12:44 AM
GitHub <noreply@github.com>Committed on Oct 3 2020, 12:44 AM
Parents
rG5b525165e911: Mismatched nvlist names in zfs_keys_send_space
Branches
Unknown
Tags
Unknown