1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -Naur nagios-plugins-1.4.11/plugins/check_swap.c nagios-plugins-1.4.11-hpux-floor/plugins/check_swap.c
--- nagios-plugins-1.4.11/plugins/check_swap.c 2007-12-10 08:52:00.000000000 +0100
+++ nagios-plugins-1.4.11-hpux-floor/plugins/check_swap.c 2008-01-05 17:11:46.696863797 +0100
@@ -427,7 +427,7 @@
else if (strstr (optarg, ",") &&
strstr (optarg, "%") &&
sscanf (optarg, "%f,%d%%", &warn_size_bytes, &warn_percent) == 2) {
- warn_size_bytes = floorf(warn_size_bytes);
+ warn_size_bytes = (float) floor(warn_size_bytes);
break;
}
else if (strstr (optarg, "%") &&
@@ -445,7 +445,7 @@
else if (strstr (optarg, ",") &&
strstr (optarg, "%") &&
sscanf (optarg, "%f,%d%%", &crit_size_bytes, &crit_percent) == 2) {
- crit_size_bytes = floorf(crit_size_bytes);
+ crit_size_bytes = (float) floor(crit_size_bytes);
break;
}
else if (strstr (optarg, "%") &&
|