summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-02-12 16:45:31 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:45:28 -0600
commit17df4ef0c7512abb10ceddad801d7849973bc211 (patch)
tree7c21f619e773ec8b41d9748290c8092beb9f5332 /io
parentfc18bab043b0db191f24ca25d845e189e07c4b43 (diff)
downloadhqemu-17df4ef0c7512abb10ceddad801d7849973bc211.zip
hqemu-17df4ef0c7512abb10ceddad801d7849973bc211.tar.gz
io: convert QIOChannelBuffer to use uint8_t instead of char
The QIOChannelBuffer struct uses a 'char *' for its data buffer. It will give simpler type compatibility with the migration APIs if it uses 'uint8_t *' instead, avoiding several casts. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/channel-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/channel-buffer.c b/io/channel-buffer.c
index 0f7c567..3e5117b 100644
--- a/io/channel-buffer.c
+++ b/io/channel-buffer.c
@@ -32,7 +32,7 @@ qio_channel_buffer_new(size_t capacity)
ioc = QIO_CHANNEL_BUFFER(object_new(TYPE_QIO_CHANNEL_BUFFER));
if (capacity) {
- ioc->data = g_new0(char, capacity);
+ ioc->data = g_new0(uint8_t, capacity);
ioc->capacity = capacity;
}
OpenPOWER on IntegriCloud