From: Florian Forster Date: Wed, 29 Jul 2020 07:56:45 +0000 (+0200) Subject: cmds: Quick fix to let "getthreshold" to compile. X-Git-Tag: 6.0.0-rc0~144^2~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97ec5dd3b1ac233f92be1cb30f62223a238918e;p=thirdparty%2Fcollectd.git cmds: Quick fix to let "getthreshold" to compile. --- 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);