commit | 56273d703eda2d350d6615fc89ea1e5beb4fd539 | [log] [tgz] |
---|---|---|
author | Hungming Chen <nuccachen@google.com> | Wed Dec 26 16:14:17 2018 +0800 |
committer | Hungming Chen <nuccachen@google.com> | Mon Jan 14 18:49:18 2019 +0800 |
tree | bb622f4f82deada2becd345076e9d6fa06db8a1a | |
parent | 806d446a3036dec3c1755302168dff26280f4900 [diff] |
Remove thread-local variable h_errno in gethostby{name, addr} related APIs Using a thread-local variable to return an int to the caller is a hack and adds a lot of complexity. Return error code with an int pointer instead. Test: built, flashed, booted system/netd/tests/runtests.sh pass Change-Id: Ie9da1a6b18525967f0e8fe3d54b0df18e37d2b0e