summaryrefslogtreecommitdiff
path: root/tests/unit/unit1607.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-08 23:13:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-09 08:25:07 +0200
commit6760dd80fc38c8fca4b8ee4917fd226dc8924a3a (patch)
treee1ec4fb2bf5d8a312d65e93d9b37946725788e10 /tests/unit/unit1607.c
parent6ee9e4bd47a919bd8567958bfcca183569747a96 (diff)
downloadcurl-6760dd80fc38c8fca4b8ee4917fd226dc8924a3a.tar.gz
http3: make connection reuse workbagder/h3-conn-reuse
Diffstat (limited to 'tests/unit/unit1607.c')
-rw-r--r--tests/unit/unit1607.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/unit/unit1607.c b/tests/unit/unit1607.c
index 6e40be707..458604229 100644
--- a/tests/unit/unit1607.c
+++ b/tests/unit/unit1607.c
@@ -25,10 +25,6 @@
#include "connect.h"
#include "share.h"
-/* retrieves ip address and port from a sockaddr structure.
- note it calls Curl_inet_ntop which sets errno on fail, not SOCKERRNO. */
-bool getaddressinfo(struct sockaddr *sa, char *addr, long *port);
-
#include "memdebug.h" /* LAST include file */
static void unit_stop(void)
@@ -154,8 +150,8 @@ UNITTEST_START
if(tests[i].address[j] == &skip)
continue;
- if(addr && !getaddressinfo(addr->ai_addr,
- ipaddress, &port)) {
+ if(addr && !Curl_addr2string(addr->ai_addr,
+ ipaddress, &port)) {
fprintf(stderr, "%s:%d tests[%d] failed. getaddressinfo failed.\n",
__FILE__, __LINE__, i);
problem = true;