From 29cbfae45181116344d6e5db607bdf507cae003b Mon Sep 17 00:00:00 2001 From: netniV Date: Mon, 15 Jul 2019 13:06:07 +0000 Subject: [PATCH] Checking type in poller.c causes compiler error Closes #98 --- CHANGELOG | 1 + poller.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index a94c052f..7ff647be 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ The Cacti Group | spine 1.2.5 -issue: Improve detection of MySQL vs. MariaDB client library requirement +-issue#98: Checking type in poller.c causes compiler error 1.2.4 -issue#92: Add Data Source ID to "Empty result' error messages diff --git a/poller.c b/poller.c index cc0019e2..225be6b4 100644 --- a/poller.c +++ b/poller.c @@ -1994,7 +1994,7 @@ char *exec_poll(host_t *current_host, char *command, int id, char *type) { if (bytes_read > 0) { result_string[bytes_read] = '\0'; } else { - if (type == "DS") { + if (STRIMATCH(type,"DS")) { SPINE_LOG(("Device[%i] DS[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command)); } else { SPINE_LOG(("Device[%i] DQ[%i] ERROR: Empty result [%s]: '%s'", current_host->id, id, current_host->hostname, command));