Code

clean up compiler warnings
[nagiosplug.git] / plugins / check_mrtg.c
index 5924f1790a8b10c981f2205fd6111a6fd6a3bf55..e13826446553254a56e17ed6a3746ed4867d5080 100644 (file)
@@ -140,9 +140,9 @@ main (int argc, char **argv)
                asprintf (&message, "%s. %s = %lu %s|%s",
                          (use_average == TRUE) ? _("Avg") : _("Max"),
                          label, rate, units,
-                         perfdata(label, rate, units,
-                                  value_warning_threshold, value_warning_threshold,
-                                  value_critical_threshold, value_critical_threshold,
+                         perfdata(label, (long) rate, units,
+                                  (int) value_warning_threshold, (long) value_warning_threshold,
+                                  (int) value_critical_threshold, (long) value_critical_threshold,
                                   0, 0, 0, 0));
        }