Skip to content

Commit

Permalink
u_int16_t -> uint16_t
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed May 17, 2024
1 parent 7782f8e commit a40dcd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/benchmark/tls_bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ static int SetupSocketAndConnect(info_t* info, const char* host,
/* Setup server address */
XMEMSET(&servAddr, 0, sizeof(servAddr));
servAddr.sin_family = AF_INET;
servAddr.sin_port = htons((u_int16_t)port);
servAddr.sin_port = htons((uint16_t)port);

/* Resolve host */
entry = gethostbyname(host);
Expand Down Expand Up @@ -1224,7 +1224,7 @@ static int SetupSocketAndListen(int* listenFd, word32 port, int doDTLS)
/* Setup server address */
XMEMSET(&servAddr, 0, sizeof(servAddr));
servAddr.sin_family = AF_INET;
servAddr.sin_port = htons((u_int16_t)port);
servAddr.sin_port = htons((uint16_t)port);
servAddr.sin_addr.s_addr = INADDR_ANY;

#ifdef WOLFSSL_DTLS
Expand Down

0 comments on commit a40dcd3

Please sign in to comment.