mirror of
https://github.com/SWG-Source/src.git
synced 2026-09-11 23:45:01 -04:00
Revert "fix some things cppcheck found...some are TODO because i don't feel like investigating them"
This reverts commit 173575e835.
This commit is contained in:
@@ -79,7 +79,7 @@ bool ConsoleCommandParserGame::performParsing(const NetworkId & track, const Str
|
||||
if(argv.size() > 2)
|
||||
{
|
||||
unsigned int pid;
|
||||
sscanf(Unicode::wideToNarrow(argv[2]).c_str(), "%u", &pid);
|
||||
sscanf(Unicode::wideToNarrow(argv[2]).c_str(), "%d", &pid);
|
||||
GameServerConnection * gameConn = CentralServer::getInstance().getGameServer(pid);
|
||||
if(gameConn)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
15
|
||||
|
||||
// ConnectionServer.cpp
|
||||
// copyright 2001 Verant Interactive
|
||||
|
||||
@@ -1577,8 +1577,7 @@ void ConnectionServer::setDone(char const *reasonfmt, ...)
|
||||
"ConnectionServer (pid %d) shutdown, reason: %s\n",
|
||||
static_cast<int>(Os::getProcessId()),
|
||||
reason));
|
||||
|
||||
va_end(ap);
|
||||
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,6 @@ void LogServer::setDone(char const *reasonfmt, ...)
|
||||
static_cast<int>(Os::getProcessId()),
|
||||
reason));
|
||||
|
||||
va_end(ap);
|
||||
m_done = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1472,8 +1472,7 @@ void PlanetServer::setDone(char const *reasonfmt, ...)
|
||||
"PlanetServer (pid %d) shutdown, reason: %s\n",
|
||||
static_cast<int>(Os::getProcessId()),
|
||||
reason));
|
||||
|
||||
va_end(ap);
|
||||
|
||||
m_done = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user