projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8193a
)
sheepdog: remove useless casts
author
Laurent Vivier
<lvivier@redhat.com>
Wed, 15 Jun 2016 16:14:37 +0000
(18:14 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Thu, 15 Sep 2016 12:32:22 +0000
(15:32 +0300)
This patch is the result of coccinelle script
scripts/coccinelle/typecast.cocci
CC: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
CC: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/sheepdog.c
patch
|
blob
|
history
diff --git
a/block/sheepdog.c
b/block/sheepdog.c
index
66e1cb2
..
ccbf7e1
100644
(file)
--- a/
block/sheepdog.c
+++ b/
block/sheepdog.c
@@
-1049,7
+1049,7
@@
static int parse_vdiname(BDRVSheepdogState *s, const char *filename,
const char *host_spec, *vdi_spec;
int nr_sep, ret;
- strstart(filename, "sheepdog:",
(const char **)
&filename);
+ strstart(filename, "sheepdog:", &filename);
p = q = g_strdup(filename);
/* count the number of separators */
@@
-2652,7
+2652,7
@@
static int sd_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab)
req.opcode = SD_OP_READ_VDIS;
req.data_length = max;
- ret = do_req(fd, s->aio_context,
(SheepdogReq *)
&req,
+ ret = do_req(fd, s->aio_context, &req,
vdi_inuse, &wlen, &rlen);
closesocket(fd);