diff options
-rw-r--r-- | common/marshaller.c | 2 | ||||
-rw-r--r-- | common/mem.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/marshaller.c b/common/marshaller.c index 70008a84..6ee7b6ab 100644 --- a/common/marshaller.c +++ b/common/marshaller.c @@ -348,7 +348,7 @@ uint8_t *spice_marshaller_add_ref(SpiceMarshaller *m, uint8_t *data, size_t size void spice_marshaller_add_ref_chunks(SpiceMarshaller *m, SpiceChunks *chunks) { - int i; + unsigned int i; for (i = 0; i < chunks->num_chunks; i++) { spice_marshaller_add_ref(m, chunks->chunk[i].data, diff --git a/common/mem.c b/common/mem.c index 427ab43f..b0a7eb16 100644 --- a/common/mem.c +++ b/common/mem.c @@ -202,7 +202,7 @@ SpiceChunks *spice_chunks_new_linear(uint8_t *data, uint32_t len) void spice_chunks_destroy(SpiceChunks *chunks) { - int i; + unsigned int i; if (chunks->flags & SPICE_CHUNKS_FLAGS_FREE) { for (i = 0; i < chunks->num_chunks; i++) { @@ -216,7 +216,7 @@ void spice_chunks_destroy(SpiceChunks *chunks) void spice_chunks_linearize(SpiceChunks *chunks) { uint8_t *data, *p; - int i; + unsigned int i; if (chunks->num_chunks > 1) { data = (uint8_t*)spice_malloc(chunks->data_size); |