Page MenuHomeFreeBSD

libutil: take a size_t in trimdomain()
Needs ReviewPublic

Authored by kevans on Fri, Jan 9, 5:00 PM.
Tags
None
Referenced Files
F141889772: D54622.diff
Mon, Jan 12, 1:37 AM
Unknown Object (File)
Sat, Jan 10, 9:37 AM
Unknown Object (File)
Sat, Jan 10, 4:45 AM
Unknown Object (File)
Sat, Jan 10, 12:49 AM
Unknown Object (File)
Fri, Jan 9, 10:26 PM
Unknown Object (File)
Fri, Jan 9, 10:15 PM
Unknown Object (File)
Fri, Jan 9, 8:45 PM
Subscribers

Details

Reviewers
brooks
jrtc27
olce
Group Reviewers
Klara
manpages
Summary

INT_MAX is already larger than a reasonable hostname might be, but
size_t makes some of this easier to reason about as we do arithmetic
with it. This would maybe not be worth it if we had to bump the
soversion because of it, but libutil does symbol versioning now so we
can provide a compat shim.

While we're here, fix some inconsistencies in argument names in the
manpage.

Obtained from: https://github.com/apple-oss-distributions/libutil
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69765
Build 66648: arc lint + arc unit