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
F166328690: D33717.diff
Wed, Aug 12, 10:55 PM
F166305365: D33717.vs100814.id100815.diff
Wed, Aug 12, 7:12 PM
Unknown Object (File)
Wed, Aug 12, 11:56 AM
Unknown Object (File)
Sat, Aug 8, 4:03 PM
Unknown Object (File)
Wed, Aug 5, 8:53 AM
Unknown Object (File)
Wed, Aug 5, 3:18 AM
Unknown Object (File)
Wed, Aug 5, 2:19 AM
Unknown Object (File)
Tue, Aug 4, 6:33 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