The following changes since commit ebb9b8ab7f2bad787bbcfc03351d1ab90bc9c15b: Kill -arch from OSX Makefile (2010-10-12 08:59:47 +0200) are available in the git repository at: git://git.kernel.dk/fio.git master Jens Axboe (1): Fix compile warning on platforms with posix_fallocate smalloc.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) --- Diff of recent changes: diff --git a/smalloc.c b/smalloc.c index 4cd8298..42008eb 100644 --- a/smalloc.c +++ b/smalloc.c @@ -178,7 +178,7 @@ static int find_next_zero(int word, int start) static int add_pool(struct pool *pool, unsigned int alloc_size) { - int fd, bitmap_blocks, ret; + int fd, bitmap_blocks; char file[] = "/tmp/.fio_smalloc.XXXXXX"; void *ptr; @@ -203,10 +203,14 @@ static int add_pool(struct pool *pool, unsigned int alloc_size) pool->free_blocks = bitmap_blocks * SMALLOC_BPB; #ifdef FIO_HAVE_FALLOCATE - ret = posix_fallocate(fd, 0, alloc_size); - if (ret > 0) { - fprintf(stderr, "posix_fallocate pool file failed: %s\n", strerror(ret)); - goto out_unlink; + { + int ret; + + ret = posix_fallocate(fd, 0, alloc_size); + if (ret > 0) { + fprintf(stderr, "posix_fallocate pool file failed: %s\n", strerror(ret)); + goto out_unlink; + } } #endif -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html