[rrd-developers] [PATCH] rrd_restore.c: Use DNAN instead of NAN.
Sebastian Harl
sh at tokkee.org
Fri May 30 16:27:55 CEST 2008
At least some combination of Solaris and GCC seems to not be able to choke
with NAN correctly - "Carrot" reported a build failure in IRC.
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
program/src/rrd_restore.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c
index 0615321..f646167 100644
--- a/program/src/rrd_restore.c
+++ b/program/src/rrd_restore.c
@@ -163,7 +163,7 @@ static int value_check_range(
if (((!isnan(min)) && (*rrd_value < min))
|| ((!isnan(max)) && (*rrd_value > max)))
- *rrd_value = NAN;
+ *rrd_value = DNAN;
return (0);
} /* int value_check_range */
--
1.5.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20080530/61b57047/attachment.bin
More information about the rrd-developers
mailing list