diff options
| author | Daniel P. Berrange | 2016-02-12 17:45:31 +0100 |
|---|---|---|
| committer | Daniel P. Berrange | 2016-02-15 15:49:18 +0100 |
| commit | e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff (patch) | |
| tree | e7624bb18f4e7ae696a30f7b03abdfb5374ee3ae /include/io | |
| parent | io: introduce helper for creating channels from file descriptors (diff) | |
| download | qemu-e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff.tar.gz qemu-e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff.tar.xz qemu-e8f117f3b3eb41a766d38e0b765f89ec79c6a9ff.zip | |
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 'include/io')
| -rw-r--r-- | include/io/channel-buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/io/channel-buffer.h b/include/io/channel-buffer.h index 91a52b3373..65c498b2c2 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; }; |
