From e97ec5dd3b1ac233f92be1cb30f62223a238918e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 29 Jul 2020 09:56:45 +0200 Subject: [PATCH] cmds: Quick fix to let "getthreshold" to compile. --- src/utils/cmds/getthreshold.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/cmds/getthreshold.c b/src/utils/cmds/getthreshold.c index 0d4e2f1f1..060cbd865 100644 --- a/src/utils/cmds/getthreshold.c +++ b/src/utils/cmds/getthreshold.c @@ -113,7 +113,8 @@ int handle_getthreshold(FILE *fh, char *buffer) { sstrncpy(vl.type_instance, type_instance, sizeof(vl.type_instance)); sfree(identifier_copy); - status = ut_search_threshold(&vl, &threshold); + /* TODO(octo): pass a metric_t* to ut_search_threshold(). */ + status = ut_search_threshold(NULL, &threshold); if (status == ENOENT) { print_to_socket(fh, "-1 No threshold found for identifier %s\n", identifier); -- 2.47.2