diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-02-12 16:45:31 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-02-15 14:49:18 +0000 |
commit | e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff (patch) | |
tree | e7624bb18f4e7ae696a30f7b03abdfb5374ee3ae /io/channel-buffer.c | |
parent | c767ae62b9efb2c9b2a757984ff1b14f89b49249 (diff) |
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/channel-buffer.c')
-rw-r--r-- | io/channel-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/channel-buffer.c b/io/channel-buffer.c index 0f7c5671fe..3e5117bf28 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; } |