summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-05-06 16:40:43 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:23 +0100
commite800e51d4ecbae0b0023bd829d0cf9082381fc00 (patch)
tree246ef923da0a0c3f58d9515699a5a146f87c5bd6
parentc968e76f967f19830e4eca83c555fc05ae31ca1b (diff)
add const to arrays in marshalling functions
-rw-r--r--common/marshaller.c2
-rw-r--r--common/marshaller.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/marshaller.c b/common/marshaller.c
index 9023d08..2934d22 100644
--- a/common/marshaller.c
+++ b/common/marshaller.c
@@ -333,7 +333,7 @@ uint8_t *spice_marshaller_add_ref_full(SpiceMarshaller *m, uint8_t *data, size_t
return data;
}
-uint8_t *spice_marshaller_add(SpiceMarshaller *m, uint8_t *data, size_t size)
+uint8_t *spice_marshaller_add(SpiceMarshaller *m, const uint8_t *data, size_t size)
{
uint8_t *ptr;
diff --git a/common/marshaller.h b/common/marshaller.h
index 0a61fef..88fbfc4 100644
--- a/common/marshaller.h
+++ b/common/marshaller.h
@@ -37,7 +37,7 @@ void spice_marshaller_reset(SpiceMarshaller *m);
void spice_marshaller_destroy(SpiceMarshaller *m);
uint8_t *spice_marshaller_reserve_space(SpiceMarshaller *m, size_t size);
void spice_marshaller_unreserve_space(SpiceMarshaller *m, size_t size);
-uint8_t *spice_marshaller_add(SpiceMarshaller *m, uint8_t *data, size_t size);
+uint8_t *spice_marshaller_add(SpiceMarshaller *m, const uint8_t *data, size_t size);
uint8_t *spice_marshaller_add_ref(SpiceMarshaller *m, uint8_t *data, size_t size);
uint8_t *spice_marshaller_add_ref_full(SpiceMarshaller *m, uint8_t *data, size_t size,
spice_marshaller_item_free_func free_data, void *opaque);