fix(compilation on alpine): Replace non standard u_short alias (#292)

This commit is contained in:
Marwan Rabbâa 2019-11-03 16:32:37 +01:00 committed by An Tao
parent a71e37d86e
commit fc8abadaeb
7 changed files with 7 additions and 7 deletions

View File

@ -902,7 +902,7 @@ class HttpAppFramework : public trantor::NonCopyable
virtual HttpAppFramework &createDbClient(
const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,

View File

@ -389,7 +389,7 @@ static void loadDbClients(const Json::Value &dbClients)
auto isFast = client.get("is_fast", false).asBool();
drogon::app().createDbClient(type,
host,
(u_short)port,
(unsigned short)port,
dbname,
user,
password,

View File

@ -44,7 +44,7 @@ class DbClientManager : public trantor::NonCopyable
}
void createDbClient(const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,

View File

@ -29,7 +29,7 @@ void DbClientManager::createDbClients(
void DbClientManager::createDbClient(const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,

View File

@ -735,7 +735,7 @@ orm::DbClientPtr HttpAppFrameworkImpl::getFastDbClient(const std::string &name)
HttpAppFramework &HttpAppFrameworkImpl::createDbClient(
const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,

View File

@ -366,7 +366,7 @@ class HttpAppFrameworkImpl : public HttpAppFramework
virtual HttpAppFramework &createDbClient(
const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,

View File

@ -87,7 +87,7 @@ void DbClientManager::createDbClients(
void DbClientManager::createDbClient(const std::string &dbType,
const std::string &host,
const u_short port,
const unsigned short port,
const std::string &databaseName,
const std::string &userName,
const std::string &password,