diff options
author | 2014-03-25 19:48:11 +0000 | |
---|---|---|
committer | 2014-03-25 19:48:11 +0000 | |
commit | 5be03f8ff4bfdb72cf93ab0aee9dc90ee972fe34 (patch) | |
tree | 92483103a5d24c93d4432a673656d433981b4a98 /lib/libc/asr/getaddrinfo.c | |
parent | sync, hopefully better this time (diff) | |
download | wireguard-openbsd-5be03f8ff4bfdb72cf93ab0aee9dc90ee972fe34.tar.xz wireguard-openbsd-5be03f8ff4bfdb72cf93ab0aee9dc90ee972fe34.zip |
Cleanup and simplify the API to be exposed. Use better names for
structures, functions and defines.
discussed with and ok deraadt@ guenther@
Diffstat (limited to 'lib/libc/asr/getaddrinfo.c')
-rw-r--r-- | lib/libc/asr/getaddrinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/asr/getaddrinfo.c b/lib/libc/asr/getaddrinfo.c index 0c6e2f45c75..074a824c1be 100644 --- a/lib/libc/asr/getaddrinfo.c +++ b/lib/libc/asr/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.3 2013/07/12 14:36:21 eric Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.4 2014/03/25 19:48:11 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -27,8 +27,8 @@ int getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) { - struct async *as; - struct async_res ar; + struct asr_query *as; + struct asr_result ar; int saved_errno = errno; res_init(); @@ -42,7 +42,7 @@ getaddrinfo(const char *hostname, const char *servname, return (EAI_SYSTEM); } - asr_async_run_sync(as, &ar); + asr_run_sync(as, &ar); *res = ar.ar_addrinfo; if (ar.ar_gai_errno == EAI_SYSTEM) |