1
0
mirror of https://git.sr.ht/~thestr4ng3r/chiaki synced 2025-03-12 05:25:23 -07:00

Fix Windows harder

This commit is contained in:
Florian Märkl 2019-10-26 11:04:43 +02:00
parent 6baf8e9c2a
commit 2682a84069
No known key found for this signature in database
GPG Key ID: 125BC8A5A6A1E857

@ -300,7 +300,7 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_wakeup(ChiakiLog *log, ChiakiDisc
CHIAKI_LOGE(log, "DiscoveryManager failed to getaddrinfo for wakeup");
return CHIAKI_ERR_NETWORK;
}
struct sockaddr addr = {};
struct sockaddr addr = { 0 };
socklen_t addr_len = 0;
for(struct addrinfo *ai=addrinfos; ai; ai=ai->ai_next)
{
@ -324,7 +324,7 @@ CHIAKI_EXPORT ChiakiErrorCode chiaki_discovery_wakeup(ChiakiLog *log, ChiakiDisc
((struct sockaddr_in *)&addr)->sin_port = htons(CHIAKI_DISCOVERY_PORT);
ChiakiDiscoveryPacket packet = {};
ChiakiDiscoveryPacket packet = { 0 };
packet.cmd = CHIAKI_DISCOVERY_CMD_WAKEUP;
packet.user_credential = user_credential;