From 23ef1eef2328540d9742b7ac7f3cf192143423c1 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 18 Jun 2015 14:45:02 +0200 Subject: [PATCH] threshold plugin: Fix "Dead increment" warnings. --- src/threshold.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/threshold.c b/src/threshold.c index 591e2dd6..4a840bb9 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -627,8 +627,6 @@ static int ut_report_state (const data_set_t *ds, else status = ssnprintf (buf, bufsize, ": All data sources are within range again."); - buf += status; - bufsize -= status; } else { @@ -696,8 +694,6 @@ static int ut_report_state (const data_set_t *ds, (state == STATE_ERROR) ? "failure" : "warning", (values[ds_index] < min) ? min : max); } - buf += status; - bufsize -= status; } plugin_dispatch_notification (&n); -- 2.30.2