aboutsummaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorqiaonuohan <qiaonuohan@cn.fujitsu.com>2014-02-18 14:11:25 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2014-02-28 11:49:02 -0500
commitb5ba1cc6260917926781fb79fbb05d53bf586d53 (patch)
treef0fe01eb78658d62600c83a58d7dbb0f2e1480e9 /dump.c
parentfbb0621a0f7aae2803d7460fc225402f9ea92000 (diff)
downloadqemu-b5ba1cc6260917926781fb79fbb05d53bf586d53.zip
qemu-b5ba1cc6260917926781fb79fbb05d53bf586d53.tar.gz
qemu-b5ba1cc6260917926781fb79fbb05d53bf586d53.tar.bz2
dump: const-qualify the buf of WriteCoreDumpFunction
WriteCoreDumpFunction is a function pointer that points to the function used to write content in "buf" into core file, so "buf" should be const-qualify. Signed-off-by: Qiao Nuohan <qiaonuohan@cn.fujitsu.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 80a9116..42622de 100644
--- a/dump.c
+++ b/dump.c
@@ -99,7 +99,7 @@ static void dump_error(DumpState *s, const char *reason)
dump_cleanup(s);
}
-static int fd_write_vmcore(void *buf, size_t size, void *opaque)
+static int fd_write_vmcore(const void *buf, size_t size, void *opaque)
{
DumpState *s = opaque;
size_t written_size;