From e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff 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 --- include/io/channel-buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/io') diff --git a/include/io/channel-buffer.h b/include/io/channel-buffer.h index 91a52b3..65c498b 100644 --- a/include/io/channel-buffer.h +++ b/include/io/channel-buffer.h @@ -42,7 +42,7 @@ struct QIOChannelBuffer { size_t capacity; /* Total allocated memory */ size_t usage; /* Current size of data */ size_t offset; /* Offset for future I/O ops */ - char *data; + uint8_t *data; }; -- cgit v1.1