INN commit: trunk/lib (dbz.c)
INN Commit
rra at isc.org
Wed Nov 9 20:29:33 UTC 2016
Date: Wednesday, November 9, 2016 @ 12:29:33
Author: iulius
Revision: 10118
Fix incorrect use of boolean values
Thanks to David Binderman for the bug report.
Modified:
trunk/lib/dbz.c
-------+
dbz.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: dbz.c
===================================================================
--- dbz.c 2016-11-06 14:23:27 UTC (rev 10117)
+++ dbz.c 2016-11-09 20:29:33 UTC (rev 10118)
@@ -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