summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-05-06 16:40:43 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-23 18:16:49 +0200
commit7290d227f7f2106abd054b602b617cba752c0c96 (patch)
tree6c530d30b2d28fb2f4a827bb13ef5dc248c78ba3 /common
parentb827c4b81366ebc749594d4b194a62258c6140e5 (diff)
add const to arrays in marshalling functions
Diffstat (limited to 'common')
-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 6ee7b6a..97c65af 100644
--- a/common/marshaller.c
+++ b/common/marshaller.c
@@ -332,7 +332,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 4d77140..ae68e85 100644
--- a/common/marshaller.h
+++ b/common/marshaller.h
@@ -33,7 +33,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);