diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-11-12 05:41:28 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-11-12 05:41:28 (GMT) |
commit | 7626b3413d1d84aa1768ad47626d044cf3f2791a (patch) | |
tree | 18830e8e2061fdcdb1760d92d772fc96470dbfeb /plugins/check_swap.c | |
parent | a28ef8e438f4d45e6f3b1747a247b21d3e8d1482 (diff) | |
download | monitoring-plugins-7626b3413d1d84aa1768ad47626d044cf3f2791a.tar.gz |
clean up compiler warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@766 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r-- | plugins/check_swap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 3bf7d43..6a578ab 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -224,13 +224,13 @@ main (int argc, char **argv) | |||
224 | asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), | 224 | asprintf (&status, _(" %d%% free (%lu MB out of %lu MB)%s"), |
225 | (100 - percent_used), free_swap, total_swap, status); | 225 | (100 - percent_used), free_swap, total_swap, status); |
226 | 226 | ||
227 | asprintf (&perf, "%s", perfdata ("swap", free_swap, "MB", | 227 | asprintf (&perf, "%s", perfdata ("swap", (long) free_swap, "MB", |
228 | TRUE, max (warn_size/1024, warn_percent/100.0*total_swap), | 228 | TRUE, (long) max (warn_size/1024, warn_percent/100.0*total_swap), |
229 | TRUE, max (crit_size/1024, crit_percent/100.0*total_swap), | 229 | TRUE, (long) max (crit_size/1024, crit_percent/100.0*total_swap), |
230 | TRUE, 0, | 230 | TRUE, 0, |
231 | TRUE, total_swap)); | 231 | TRUE, (long) total_swap)); |
232 | die (result, "SWAP %s:%s |%s\n", state_text (result), status, perf); | 232 | printf ("SWAP %s:%s |%s\n", state_text (result), status, perf); |
233 | return STATE_UNKNOWN; | 233 | return result; |
234 | } | 234 | } |
235 | 235 | ||
236 | 236 | ||