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:
parent
7170581117
commit
8a39f8979e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user