INN commit: branches/2.6/lib (dbz.c)

INN Commit rra at isc.org
Wed Nov 9 20:30:01 UTC 2016


    Date: Wednesday, November 9, 2016 @ 12:30:01
  Author: iulius
Revision: 10119

Fix incorrect use of boolean values

Thanks to David Binderman for the bug report.

Modified:
  branches/2.6/lib/dbz.c

-------+
 dbz.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: dbz.c
===================================================================
--- dbz.c	2016-11-09 20:29:33 UTC (rev 10118)
+++ dbz.c	2016-11-09 20:30:01 UTC (rev 10119)
@@ -1731,7 +1731,7 @@
     if (initialize) {
 	RemoveDBZ(history);
 	gettimeofday(&start, NULL);
-	if (dbzfresh(history, dbzsize(size)) < 0) {
+	if (!dbzfresh(history, dbzsize(size))) {
 	    fprintf(stderr, "cant dbzfresh %s\n", history);
 	    exit(1);
 	}
@@ -1739,7 +1739,7 @@
 	printf("dbzfresh: %d msec\n", timediffms(start, end));
     } else {
 	gettimeofday(&start, NULL);
-	if (dbzinit(history) < 0) {
+	if (!dbzinit(history)) {
 	    fprintf(stderr, "cant dbzinit %s\n", history);
 	    exit(1);
 	}



More information about the inn-committers mailing list