From: Hitoshi Mitake <mitake.hitoshi@gmail.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>,
qemu-block@nongnu.org
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH 7/7] sheepdog: remove useless casts
Date: Fri, 17 Jun 2016 12:23:27 +0900 [thread overview]
Message-ID: <87inx8lcr4.wl%mitake.hitoshi@gmail.com> (raw)
In-Reply-To: <1466007277-17525-8-git-send-email-lvivier@redhat.com>
At Wed, 15 Jun 2016 18:14:37 +0200,
Laurent Vivier wrote:
>
> 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>
> ---
> block/sheepdog.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Thanks,
Hitoshi
>
> diff --git a/block/sheepdog.c b/block/sheepdog.c
> index 23fbace..95e6a11 100644
> --- 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);
> --
> 2.5.5
>
>
next prev parent reply other threads:[~2016-06-17 4:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 16:14 [Qemu-trivial] [PATCH 0/7] Remove useless casts Laurent Vivier
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 1/7] coccinelle: add a script to remove " Laurent Vivier
2016-06-24 17:21 ` [Qemu-trivial] [Qemu-devel] " Eric Blake
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 2/7] linux-user,s390x: remove useless cast Laurent Vivier
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 3/7] s390x: " Laurent Vivier
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 4/7] tricore: " Laurent Vivier
2016-06-16 8:17 ` [Qemu-trivial] [Qemu-devel] " Bastian Koppelmann
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 5/7] fw_cfg: remove useless casts Laurent Vivier
2016-06-15 16:34 ` Laszlo Ersek
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 6/7] crypto: " Laurent Vivier
2016-06-23 11:07 ` Daniel P. Berrange
2016-09-14 7:40 ` Michael Tokarev
2016-06-15 16:14 ` [Qemu-trivial] [PATCH 7/7] sheepdog: " Laurent Vivier
2016-06-17 3:23 ` Hitoshi Mitake [this message]
2016-06-23 11:03 ` [Qemu-trivial] [Qemu-devel] [PATCH 0/7] Remove " Laurent Vivier
2016-09-14 7:18 ` [Qemu-trivial] " Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87inx8lcr4.wl%mitake.hitoshi@gmail.com \
--to=mitake.hitoshi@gmail.com \
--cc=lvivier@redhat.com \
--cc=mitake.hitoshi@lab.ntt.co.jp \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).