mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user