diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2024-05-20 16:40:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 19:40:04 +0300 |
commit | 834cb8233dc2fa2bed0164c6c0f3ecbff76b3f1b (patch) | |
tree | 4983d5889ac566640fcc84fad337e8b258827f20 | |
parent | 180de8b5982584d0d5493cd0fd4f741689afb9d5 (diff) |
Rename a variable in FreeIMPI (WolfSSL support) (#17687)
-rw-r--r-- | src/collectors/freeipmi.plugin/freeipmi_plugin.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/collectors/freeipmi.plugin/freeipmi_plugin.c b/src/collectors/freeipmi.plugin/freeipmi_plugin.c index 23bdea0579..701f65891e 100644 --- a/src/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/src/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -105,7 +105,7 @@ unsigned int register_spacing = 0; /* not used if probing */ char *driver_device = NULL; /* not used if probing */ /* Out-of-band Communication Configuration */ -int protocol_version = -1; // IPMI_MONITORING_PROTOCOL_VERSION_1_5, etc. or -1 for default +int freeimpi_protocol_version = -1; // IPMI_MONITORING_PROTOCOL_VERSION_1_5, etc. or -1 for default char *username = ""; char *password = ""; unsigned char *k_g = NULL; @@ -151,7 +151,7 @@ static void initialize_ipmi_config (struct ipmi_monitoring_ipmi_config *ipmi_con ipmi_config->register_spacing = register_spacing; ipmi_config->driver_device = driver_device; - ipmi_config->protocol_version = protocol_version; + ipmi_config->protocol_version = freeimpi_protocol_version; ipmi_config->username = username; ipmi_config->password = password; ipmi_config->k_g = k_g; @@ -1862,9 +1862,9 @@ int main (int argc, char **argv) { } else if(strcmp("driver-type", argv[i]) == 0) { if (hostname) { - protocol_version = netdata_parse_outofband_driver_type(argv[++i]); - if(debug) fprintf(stderr, "%s: outband protocol version set to '%d'\n", - program_name, protocol_version); + freeimpi_protocol_version = netdata_parse_outofband_driver_type(argv[++i]); + if(debug) fprintf(stderr, "%s: outband FreeIMPI protocol version set to '%d'\n", + program_name, freeimpi_protocol_version); } else { driver_type = netdata_parse_inband_driver_type(argv[++i]); @@ -1879,7 +1879,7 @@ int main (int argc, char **argv) { program_name); } - else if (protocol_version < 0 || protocol_version == IPMI_MONITORING_PROTOCOL_VERSION_1_5) { + else if (freeimpi_protocol_version < 0 || freeimpi_protocol_version == IPMI_MONITORING_PROTOCOL_VERSION_1_5) { workaround_flags |= IPMI_MONITORING_WORKAROUND_FLAGS_PROTOCOL_VERSION_1_5_NO_AUTH_CODE_CHECK; if (debug) |