Fix Windows harder

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

View file

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