X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=ccan%2Ftdb2%2Ftest%2Frun-30-exhaust-before-expand.c;h=eb656954f83b64b25862130151f7b17abad6c5f7;hb=e984ef661368582f7b6e7a8d2a2d709356ac7963;hp=8be5a5edb697eb766ec48f7030c048a70ff9521d;hpb=d71f8b0bc81f564b57a062561dd136c6467f57e5;p=ccan 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);