diff --git a/.gitignore b/.gitignore index d03d1485..c1743e26 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ make-bcache probe-bcache .* +*.o diff --git a/bcache.h b/bcache.h index e3c10ca5..d91b3e18 100644 --- a/bcache.h +++ b/bcache.h @@ -38,7 +38,7 @@ struct cache_sb { uint16_t first_bucket; uint16_t keys; /* number of journal buckets */ - uint64_t d[512]; /* journal buckets */ + uint64_t d[]; /* journal buckets */ }; inline uint64_t crc64(const void *_data, size_t len);