From 3038819fef47495af2730b0d2df2a5a8475fc7bb Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Mon, 31 Oct 2005 20:03:19 +0000 Subject: code cleanups, largely resulting from turning on -Wall. mostly unused variables and explicit casting issues, but there were a couple gotchas in there too. git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1267 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/check_swap.c') diff --git a/plugins/check_swap.c b/plugins/check_swap.c index aeeb9ba0..74b9daf6 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c @@ -385,7 +385,7 @@ process_arguments (int argc, char **argv) } else if (strstr (optarg, ",") && strstr (optarg, "%") && - sscanf (optarg, "%g,%d%%", &warn_size, &warn_percent) == 2) { + sscanf (optarg, "%lf,%d%%", &warn_size, &warn_percent) == 2) { warn_size = floor(warn_size); break; } @@ -403,7 +403,7 @@ process_arguments (int argc, char **argv) } else if (strstr (optarg, ",") && strstr (optarg, "%") && - sscanf (optarg, "%g,%d%%", &crit_size, &crit_percent) == 2) { + sscanf (optarg, "%lf,%d%%", &crit_size, &crit_percent) == 2) { crit_size = floor(crit_size); break; } -- cgit v1.2.3