INN commit: trunk/backends (inndf.c)

INN Commit rra at isc.org
Wed Jun 3 19:08:51 UTC 2015


    Date: Wednesday, June 3, 2015 @ 12:08:50
  Author: iulius
Revision: 9891

Fix a Clang warning for the test of the equality between floats

overview_free_space returns a percentage (positive number) or -1 when
free space is irrelevant for the overview method used.

Modified:
  trunk/backends/inndf.c

---------+
 inndf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: inndf.c
===================================================================
--- inndf.c	2015-06-03 19:06:21 UTC (rev 9890)
+++ inndf.c	2015-06-03 19:08:50 UTC (rev 9891)
@@ -328,7 +328,7 @@
        that query. */
     if (ovused) {
         used = overview_free_space(overview);
-        if (used == -1)
+        if (used < 0)
             printf("Space used is meaningless for the %s method\n",
                    innconf->ovmethod);
         else



More information about the inn-committers mailing list