diff options
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r-- | src/network/core/os_abstraction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index 133f3d958..980c6f7f6 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -57,7 +57,7 @@ static inline int OTTDgetnameinfo(const struct sockaddr *sa, socklen_t salen, ch if (getnameinfo != NULL) return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); - strncpy(host, inet_ntoa(((struct sockaddr_in *)sa)->sin_addr), hostlen); + strncpy(host, inet_ntoa(((const struct sockaddr_in *)sa)->sin_addr), hostlen); return 0; } #define getnameinfo OTTDgetnameinfo |