From ec06475f22db2a3683167c5ffbe236c8e4aaf0ab Mon Sep 17 00:00:00 2001 From: Basavanagowda Kanur Date: Mon, 13 Apr 2009 04:47:39 +0530 Subject: changes to database read interface, to make use of a given buffer instead of allocating internally. Signed-off-by: Anand V. Avati --- xlators/storage/bdb/src/bdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/storage/bdb/src/bdb.c') diff --git a/xlators/storage/bdb/src/bdb.c b/xlators/storage/bdb/src/bdb.c index 9ae4b57c..81ced573 100644 --- a/xlators/storage/bdb/src/bdb.c +++ b/xlators/storage/bdb/src/bdb.c @@ -485,7 +485,7 @@ bdb_readv (call_frame_t *frame, } /* we are ready to go */ - op_ret = bdb_db_fread (bfd, (char **)&iobuf->ptr, size, offset); + op_ret = bdb_db_fread (bfd, iobuf->ptr, size, offset); read_size = op_ret; if (op_ret == -1) { gf_log (this->name, GF_LOG_DEBUG, -- cgit