Cleanup server.h

- All (but the printing/debug functions) are now in snake_case.
- Functions made const correct.
- All function prototypes now have named arguments.

Documentation still to be moved, and file possibly split into
include/mascale/server.h and server/core/maxscale/server.h
This commit is contained in:
Johan Wikman
2017-01-09 11:19:09 +02:00
parent 1b8742781b
commit c3ddc3ac22
7 changed files with 52 additions and 77 deletions

View File

@ -286,13 +286,13 @@ bool runtime_alter_server(SERVER *server, char *key, char *value)
}
else
{
if (!serverRemoveParameter(server, key) && !value[0])
if (!server_remove_parameter(server, key) && !value[0])
{
valid = false;
}
else if (value[0])
{
serverAddParameter(server, key, value);
server_add_parameter(server, key, value);
/**
* It's likely that this parameter is used as a weighting parameter.