summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-10-04 15:25:57 +0000
committerrubidium <rubidium@openttd.org>2012-10-04 15:25:57 +0000
commit0856668f442746887e3a2f3a2f8f9c1274652f0a (patch)
treebd7f0dcdc8523b0ad4d46ed1bca6c0bbcc551a5d /src
parentaa3f776483d37d2988d60adb959f5646a0d04765 (diff)
downloadopenttd-0856668f442746887e3a2f3a2f8f9c1274652f0a.tar.xz
(svn r24571) -Fix: do not cast away const
Diffstat (limited to 'src')
-rw-r--r--src/network/core/os_abstraction.h2
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