summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 6cd3967fc..e22f50fea 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -655,7 +655,7 @@ void Client::gameInit()
if (mCurrentServer.port == 0)
{
mCurrentServer.port = static_cast<uint16_t>(branding.getValue(
- "defaultPort", DEFAULT_PORT));
+ "defaultPort", static_cast<int>(DEFAULT_PORT)));
mCurrentServer.type = ServerInfo::parseType(
branding.getValue("defaultServerType", "tmwathena"));
}
@@ -722,7 +722,7 @@ void Client::setEnv(const char *const name, const char *const value)
if (!name || !value)
return;
#ifdef WIN32
- if (putenv(reinterpret_cast<char*>((std::string(name)
+ if (putenv(const_cast<char*>((std::string(name)
+ "=" + value).c_str())))
#else
if (setenv(name, value, 1))