Skip to content

Commit 16b39e8

Browse files
authored
Merge pull request #7556 from gasbytes/patch
u_int16_t -> uint16_t
2 parents 391431c + a40dcd3 commit 16b39e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/benchmark/tls_bench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ static int SetupSocketAndConnect(info_t* info, const char* host,
813813
/* Setup server address */
814814
XMEMSET(&servAddr, 0, sizeof(servAddr));
815815
servAddr.sin_family = AF_INET;
816-
servAddr.sin_port = htons((u_int16_t)port);
816+
servAddr.sin_port = htons((uint16_t)port);
817817

818818
/* Resolve host */
819819
entry = gethostbyname(host);
@@ -1224,7 +1224,7 @@ static int SetupSocketAndListen(int* listenFd, word32 port, int doDTLS)
12241224
/* Setup server address */
12251225
XMEMSET(&servAddr, 0, sizeof(servAddr));
12261226
servAddr.sin_family = AF_INET;
1227-
servAddr.sin_port = htons((u_int16_t)port);
1227+
servAddr.sin_port = htons((uint16_t)port);
12281228
servAddr.sin_addr.s_addr = INADDR_ANY;
12291229

12301230
#ifdef WOLFSSL_DTLS

0 commit comments

Comments
 (0)