1
0
mirror of https://github.com/solemnwarning/directplay-lite synced 2024-12-30 16:45:37 +01:00

Update DirectPlay8Address.cpp

Fixed build error C2664: 'PCSTR inet_ntop(INT,PVOID,PSTR,size_t)': cannot convert argument 2 from 'const IN_ADDR *' to 'PVOID'"
This commit is contained in:
Lafika 2022-05-26 22:10:53 +02:00 committed by GitHub
parent 7170581117
commit 8a39f8979e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ DirectPlay8Address *DirectPlay8Address::create_host_address(std::atomic<unsigned
/* TCP/IP service provider, just stick the IP in the hostname field. */
char hostname[16];
inet_ntop(AF_INET, &(sa_v4->sin_addr), hostname, sizeof(hostname));
inet_ntop(AF_INET, (void*)(&(sa_v4->sin_addr)), hostname, sizeof(hostname));
address->AddComponent(DPNA_KEY_HOSTNAME,
hostname, strlen(hostname) + 1, DPNA_DATATYPE_STRING_ANSI);