fix(compilation on alpine): Replace non standard u_short alias (#292)
This commit is contained in:
parent
a71e37d86e
commit
fc8abadaeb
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue