HomeFreeBSD

Replace strchrnul() with strrchr()

Description

Replace strchrnul() with strrchr()

Could have gone either way with this one, either adding it to
macOS/Windows SPL, or returning it to "classic" usage with strrchr().
Since the new special way isn't really used, and only used once,
we have this commit.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12312

Details

Provenance
Jorgen Lundman <lundman@lundman.net>Authored on Jul 8 2021, 3:08 AM
GitHub <noreply@github.com>Committed on Jul 8 2021, 3:08 AM
Parents
rGeb5983e1b7b4: FreeBSD: Use unmapped I/O for scattered/gang ABD buffers
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd2119d0e6f41: Replace strchrnul() with strrchr() (authored by Jorgen Lundman <lundman@lundman.net>).Jul 8 2021, 3:08 AM