MXS-2220 Store server ports as integers and modify them in methods

This commit is contained in:
Esa Korhonen
2018-12-19 13:06:26 +02:00
parent 09aa54720d
commit 5fc2c1f49c
8 changed files with 31 additions and 59 deletions

View File

@ -486,12 +486,12 @@ bool runtime_alter_server(Server* server, const char* key, const char* value)
{
if (long ival = get_positive_int(value))
{
server_update_port(server, ival);
server->update_port(ival);
}
}
else if (strcmp(key, CN_EXTRA_PORT) == 0)
{
server_update_extra_port(server, atoi(value));
server->update_extra_port(atoi(value));
}
else if (strcmp(key, CN_MONITORUSER) == 0)
{