@cryptotaxi247 / netdata-1 / commits / 834cb8233

Rename a variable in FreeIMPI (WolfSSL support) (#17687)

thiagoftsm committed May 20, 2024 at 16:40 UTC 834cb8233dc2fa2bed0164c6c0f3ecbff76b3f1b
1 file changed +6 -6
src/collectors/freeipmi.plugin/freeipmi_plugin.c
+6 -6
@@ -105,7 +105,7 @@ unsigned int register_spacing = 0; /* not used if probing */
105 char *driver_device = NULL; /* not used if probing */
106
107 /* Out-of-band Communication Configuration */
108 -int protocol_version = -1; // IPMI_MONITORING_PROTOCOL_VERSION_1_5, etc. or -1 for default
108 +int freeimpi_protocol_version = -1; // IPMI_MONITORING_PROTOCOL_VERSION_1_5, etc. or -1 for default
109 char *username = "";
110 char *password = "";
111 unsigned char *k_g = NULL;
@@ -151,7 +151,7 @@ static void initialize_ipmi_config (struct ipmi_monitoring_ipmi_config *ipmi_con
151 ipmi_config->register_spacing = register_spacing;
152 ipmi_config->driver_device = driver_device;
153
154 - ipmi_config->protocol_version = protocol_version;
154 + ipmi_config->protocol_version = freeimpi_protocol_version;
155 ipmi_config->username = username;
156 ipmi_config->password = password;
157 ipmi_config->k_g = k_g;
@@ -1862,9 +1862,9 @@ int main (int argc, char **argv) {
1862 }
1863 else if(strcmp("driver-type", argv[i]) == 0) {
1864 if (hostname) {
1865 - protocol_version = netdata_parse_outofband_driver_type(argv[++i]);
1866 - if(debug) fprintf(stderr, "%s: outband protocol version set to '%d'\n",
1867 - program_name, protocol_version);
1865 + freeimpi_protocol_version = netdata_parse_outofband_driver_type(argv[++i]);
1866 + if(debug) fprintf(stderr, "%s: outband FreeIMPI protocol version set to '%d'\n",
1867 + program_name, freeimpi_protocol_version);
1868 }
1869 else {
1870 driver_type = netdata_parse_inband_driver_type(argv[++i]);
@@ -1879,7 +1879,7 @@ int main (int argc, char **argv) {
1879 program_name);
1880
1881 }
1882 - else if (protocol_version < 0 || protocol_version == IPMI_MONITORING_PROTOCOL_VERSION_1_5) {
1882 + else if (freeimpi_protocol_version < 0 || freeimpi_protocol_version == IPMI_MONITORING_PROTOCOL_VERSION_1_5) {
1883 workaround_flags |= IPMI_MONITORING_WORKAROUND_FLAGS_PROTOCOL_VERSION_1_5_NO_AUTH_CODE_CHECK;
1884
1885 if (debug)