summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 23:55:16 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-30 23:55:16 +0200
commit430c641d9c6c3efb3fb0493b35e11dbc6ede2faa (patch)
tree0ae45317d143067a2dfd249f25bd38dea8fe8290
parentd1d6ba67065c0b1a8a61d59522e19a94eb647c94 (diff)
downloadmonitoring-plugins-430c641d9c6c3efb3fb0493b35e11dbc6ede2faa.tar.gz
Try to circumvent some old compiler errors
-rw-r--r--lib/perfdata.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/perfdata.c b/lib/perfdata.c
index 1742342e..f425ffcf 100644
--- a/lib/perfdata.c
+++ b/lib/perfdata.c
@@ -569,9 +569,6 @@ mp_perfdata_value mp_pd_value_multiply(mp_perfdata_value left, mp_perfdata_value
569 left.pd_double = (double)left.pd_uint; 569 left.pd_double = (double)left.pd_uint;
570 left.type = PD_TYPE_DOUBLE; 570 left.type = PD_TYPE_DOUBLE;
571 break; 571 break;
572 case PD_TYPE_DOUBLE:
573 default:
574 // already there
575 } 572 }
576 573
577 switch (right.type) { 574 switch (right.type) {
@@ -583,9 +580,6 @@ mp_perfdata_value mp_pd_value_multiply(mp_perfdata_value left, mp_perfdata_value
583 right.pd_double = (double)right.pd_uint; 580 right.pd_double = (double)right.pd_uint;
584 right.type = PD_TYPE_DOUBLE; 581 right.type = PD_TYPE_DOUBLE;
585 break; 582 break;
586 case PD_TYPE_DOUBLE:
587 default:
588 // already there
589 } 583 }
590 584
591 left.pd_double *= right.pd_double; 585 left.pd_double *= right.pd_double;