diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-02-06 21:27:17 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-06 16:35:17 -0600 |
commit | c4f331b6b3b5fe260128f316ee9f01997f7c428d (patch) | |
tree | fb5709c3a4fce7db95fd13003c256607649ab1a0 | |
parent | 1a69278e53a0e5060c8c6cc825449a122634ce3b (diff) | |
download | hqemu-c4f331b6b3b5fe260128f316ee9f01997f7c428d.zip hqemu-c4f331b6b3b5fe260128f316ee9f01997f7c428d.tar.gz |
qmp: Clean up type usage in qmp_memchar_write(), qmp_memchar_read()
Const-correctness, consistently use standard C types instead of mixing
them with GLib types.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-char.c b/qemu-char.c index 2bdd1bb..b1c6132 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2758,9 +2758,9 @@ void qmp_memchar_write(const char *device, const char *data, Error **errp) { CharDriverState *chr; - guchar *write_data; + const uint8_t *write_data; int ret; - gsize write_count; + size_t write_count; chr = qemu_chr_find(device); if (!chr) { @@ -2793,7 +2793,7 @@ char *qmp_memchar_read(const char *device, int64_t size, Error **errp) { CharDriverState *chr; - guchar *read_data; + uint8_t *read_data; size_t count; char *data; |