Remove reference to `udp` from test.h.

pull/373/head
John Safranek 2021-10-28 08:24:26 -07:00
parent 48803774c7
commit 09dc430d8a
1 changed files with 2 additions and 2 deletions

View File

@ -441,8 +441,8 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET_V;
hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
hints.ai_protocol = udp ? IPPROTO_UDP : IPPROTO_TCP;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
WSNPRINTF(strPort, sizeof(strPort), "%d", port);
strPort[79] = '\0';