From 7626b3413d1d84aa1768ad47626d044cf3f2791a Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Wed, 12 Nov 2003 05:41:28 +0000 Subject: clean up compiler warnings git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@766 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_swap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/check_swap.c') diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 3bf7d432..6a578abe 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -224,13 +224,13 @@ main (int argc, char **argv) asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), (100 - percent_used), free_swap, total_swap, status); - asprintf (&perf, "%s", perfdata ("swap", free_swap, "MB", - TRUE, max (warn_size/1024, warn_percent/100.0*total_swap), - TRUE, max (crit_size/1024, crit_percent/100.0*total_swap), + asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB", + TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap), + TRUE, (long) max (crit_size/1024, crit_percent/100.0*total_swap), TRUE, 0, - TRUE, total_swap)); - die (result, "SWAP %s:%s |%s\n", state_text (result), status, perf); - return STATE_UNKNOWN; + TRUE, (long) total_swap)); + printf ("SWAP %s:%s |%s\n", state_text (result), status, perf); + return result; } -- cgit v1.2.3