Page MenuHomeFreeBSD

route: remove write-only struct hostent from getaddr()
ClosedPublic

Authored by emaste on Jan 2 2022, 12:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 10, 10:27 PM
Unknown Object (File)
Sat, Jan 3, 2:52 PM
Unknown Object (File)
Sat, Jan 3, 2:52 PM
Unknown Object (File)
Sat, Jan 3, 2:52 PM
Unknown Object (File)
Wed, Dec 24, 7:13 PM
Unknown Object (File)
Nov 25 2025, 8:29 PM
Unknown Object (File)
Nov 16 2025, 11:05 AM
Unknown Object (File)
Nov 16 2025, 1:31 AM
Subscribers

Diff Detail

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

Event Timeline

emaste created this revision.
emaste added reviewers: melifaro, imp, hrs.
emaste added a subscriber: freebsd-net-list.

remove now-unused variable

As @melifaro pointed out to prompt this change hp was passed to three getaddr() calls in newroute(), and was not otherwise used, and getaddr() does not use the passed-in value.

This revision is now accepted and ready to land.Jan 5 2022, 5:03 PM