mirror of https://github.com/wolfSSL/wolfssh.git
Remove reference to `udp` from test.h.
parent
48803774c7
commit
09dc430d8a
|
@ -441,8 +441,8 @@ static INLINE void build_addr(SOCKADDR_IN_T* addr, const char* peer,
|
||||||
memset(&hints, 0, sizeof(hints));
|
memset(&hints, 0, sizeof(hints));
|
||||||
|
|
||||||
hints.ai_family = AF_INET_V;
|
hints.ai_family = AF_INET_V;
|
||||||
hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
hints.ai_protocol = udp ? IPPROTO_UDP : IPPROTO_TCP;
|
hints.ai_protocol = IPPROTO_TCP;
|
||||||
|
|
||||||
WSNPRINTF(strPort, sizeof(strPort), "%d", port);
|
WSNPRINTF(strPort, sizeof(strPort), "%d", port);
|
||||||
strPort[79] = '\0';
|
strPort[79] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue