[Sheepdog] [PATCH 7/8] sheepdog: silence type warning from GCC

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Apr 27 08:33:53 CEST 2010


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 block/sheepdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/sheepdog.c b/block/sheepdog.c
index bfccd63..0f3ccfd 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -1709,7 +1709,7 @@ static int sd_save_vmstate(BlockDriverState *bs, const uint8_t *data,
 
 		rlen = 0;
 
-		if (do_req(fd, (struct sd_req *)&hdr, data, &wlen, &rlen) < 0) {
+		if (do_req(fd, (struct sd_req *)&hdr, (char *)data, &wlen, &rlen) < 0) {
 			eprintf("failed to save vmstate %m\n");
 			ret = -EIO;
 			goto cleanup;
-- 
1.5.6.5




More information about the sheepdog mailing list