threshold plugin: Fix "Dead increment" warnings.
authorFlorian Forster <octo@collectd.org>
Thu, 18 Jun 2015 12:45:02 +0000 (14:45 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 18 Jun 2015 12:45:02 +0000 (14:45 +0200)
src/threshold.c

index 591e2dd..4a840bb 100644 (file)
@@ -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);