Fix compile errors in Centos 6

Fix compile errors in Centos 6
This commit is contained in:
MassimilianoPinto
2017-03-27 09:49:21 +02:00
parent 710012ac5d
commit 8e24f847e6
5 changed files with 20 additions and 5 deletions

View File

@ -348,7 +348,8 @@ static void add_monitor_defaults(MXS_MONITOR *monitor)
{
/** Inject the default module parameters in case we only deleted
* a parameter */
CONFIG_CONTEXT ctx = {.object = (char*)""};
CONFIG_CONTEXT ctx = {};
ctx.object = (char*)"";
const MXS_MODULE *mod = get_module(monitor->module_name, MODULE_MONITOR);
if (mod)
@ -427,7 +428,9 @@ bool runtime_alter_monitor(MXS_MONITOR *monitor, char *key, char *value)
if (value[0])
{
MXS_CONFIG_PARAMETER p = {.name = key, .value = value};
MXS_CONFIG_PARAMETER p = {};
p.name = key;
p.value = value;
monitorAddParameters(monitor, &p);
}