From 17df4ef0c7512abb10ceddad801d7849973bc211 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 12 Feb 2016 16:45:31 +0000 Subject: 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 --- io/channel-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io') 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; } -- cgit v1.1