Skip to content

Commit

Permalink
Fix NetworkManager compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Apr 3, 2024
1 parent 64235dc commit 10cc732
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libraries/Network/src/NetworkManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ int NetworkManager::hostByName(const char* aHostname, IPAddress& aResult)

const char *servname = "0";
struct addrinfo *res;
const struct addrinfo hints = {
.ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM,
};
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;

err = lwip_getaddrinfo(aHostname, servname, &hints, &res);
if (err == ERR_OK)
{
Expand Down

0 comments on commit 10cc732

Please sign in to comment.