summaryrefslogtreecommitdiffstats
path: root/ml
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2022-05-12 15:08:38 +0300
committerGitHub <noreply@github.com>2022-05-12 14:08:38 +0200
commita68ae03b9c710ffc6ff634a9ebdcf030dd5808ff (patch)
tree6e97c90689cd935af7b6cba720efcbc93773164a /ml
parentb3c1cf515142d36740a8fb6b2717753176e8255d (diff)
Fix compilation warnings (#12886)
Diffstat (limited to 'ml')
-rw-r--r--ml/Dimension.h2
-rw-r--r--ml/ml.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ml/Dimension.h b/ml/Dimension.h
index c29df781a4..e4f8bd1c70 100644
--- a/ml/Dimension.h
+++ b/ml/Dimension.h
@@ -48,7 +48,7 @@ public:
}
virtual ~RrdDimension() {
- rrddim_free_custom(AnomalyRateRD->rrdset, AnomalyRateRD, 0);
+ rrddim_free(AnomalyRateRD->rrdset, AnomalyRateRD);
}
private:
diff --git a/ml/ml.h b/ml/ml.h
index 4b33b2236b..e07eb094e9 100644
--- a/ml/ml.h
+++ b/ml/ml.h
@@ -10,9 +10,9 @@ extern "C" {
#include "daemon/common.h"
#include "web/api/queries/rrdr.h"
-// This is an internal DBEngine function redeclared here so that we can free
+// This is a DBEngine function redeclared here so that we can free
// the anomaly rate dimension, whenever its backing dimension is freed.
-extern void rrddim_free_custom(RRDSET *st, RRDDIM *rd, int db_rotated);
+extern void rrddim_free(RRDSET *st, RRDDIM *rd);
typedef void* ml_host_t;
typedef void* ml_dimension_t;