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)
Sun, Oct 12, 10:14 AM
Unknown Object (File)
Mon, Sep 29, 9:18 PM
Unknown Object (File)
Sat, Sep 27, 8:21 PM
Unknown Object (File)
Thu, Sep 25, 1:00 AM
Unknown Object (File)
Sat, Sep 20, 3:06 PM
Unknown Object (File)
Mon, Sep 15, 9:17 AM
Unknown Object (File)
Mon, Sep 15, 4:27 AM
Unknown Object (File)
Sep 14 2025, 5:12 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