- Use getaddrinfo to replace gethostbyname, use for loop to loop the address list and copy the first meet ipv4 address.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 58558 Build 55446: arc lint + arc unit
Event Timeline
Comment Actions
Update according Hiroki advise in D45594
- Use "error" instead of "status" name to store the value of getaddrinfo() function.
- Use compound literals instead of "hints" variable.