diff --git a/port/windows/ipadapter.c b/port/windows/ipadapter.c index e6721fda4e..5dffef4534 100644 --- a/port/windows/ipadapter.c +++ b/port/windows/ipadapter.c @@ -1229,7 +1229,7 @@ oc_send_discovery_request(oc_message_t *message) } DWORD ttl = OC_IPV4_MULTICAST_TTL; if (setsockopt(dev->server4_sock, IPPROTO_IP, IP_MULTICAST_TTL, - (char*)&ttl, sizeof(DWORD)) == -1) { + (char *)&ttl, sizeof(DWORD)) == -1) { OC_ERR("setting socket option for default IP_MULTICAST_TTL: %d", WSAGetLastError()); goto done;