X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-30-exhaust-before-expand.c;h=eb656954f83b64b25862130151f7b17abad6c5f7;hp=8be5a5edb697eb766ec48f7030c048a70ff9521d;hb=d1383862ad9a74e713dc915d351b74da4db35078;hpb=c5e3f07a30056cb7c3c380bf690f80815ca4b6b1;ds=sidebyside diff --git a/ccan/tdb2/test/run-30-exhaust-before-expand.c b/ccan/tdb2/test/run-30-exhaust-before-expand.c index 8be5a5ed..eb656954 100644 --- a/ccan/tdb2/test/run-30-exhaust-before-expand.c +++ b/ccan/tdb2/test/run-30-exhaust-before-expand.c @@ -39,12 +39,12 @@ int main(int argc, char *argv[]) d.dptr = malloc(d.dsize); ok1(tdb_store(tdb, k, d, TDB_INSERT) == 0); ok1(tdb->map_size == sizeof(struct tdb_header) - + (1 << INITIAL_ZONE_BITS)+1); + + (1 << INITIAL_ZONE_BITS)); /* Insert minimal-length records until we add a zone. */ for (j = 0; tdb->map_size == sizeof(struct tdb_header) - + (1 << INITIAL_ZONE_BITS)+1; + + (1 << INITIAL_ZONE_BITS); j++) { if (tdb_store(tdb, k, k, TDB_INSERT) != 0) err(1, "Failed to store record %i", j);