summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-08 15:44:39 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-08 15:44:39 +0200
commit925f6387c8b5bd63ecd128c9187d8424607e0fa8 (patch)
tree434e960328996721b62c6d111f3e09b84e6064eb
parent9cc15825615be5f2bb96b21a9e3c6994f6725cd1 (diff)
Fix sign warnings from win32 compiler
-rw-r--r--common/marshaller.c2
-rw-r--r--common/mem.c4
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);