summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/array.c2
-rw-r--r--src/common/array.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/array.c b/src/common/array.c
index a4b55f4..641a885 100644
--- a/src/common/array.c
+++ b/src/common/array.c
@@ -206,7 +206,7 @@ size_t count_flat_array_items(const flat_array_t *array)
* *
******************************************************************************/
-void add_item_to_flat_array(flat_array_t **array, void *item, size_t size)
+void add_item_to_flat_array(flat_array_t **array, const void *item, size_t size)
{
ext_flat_array_t *extended; /* Version de tableau étendue */
diff --git a/src/common/array.h b/src/common/array.h
index 33558ee..416800d 100644
--- a/src/common/array.h
+++ b/src/common/array.h
@@ -43,7 +43,7 @@ void unlock_flat_array(flat_array_t **);
size_t count_flat_array_items(const flat_array_t *);
/* Ajoute un élément supplémentaire à un tableau. */
-void add_item_to_flat_array(flat_array_t **, void *, size_t);
+void add_item_to_flat_array(flat_array_t **, const void *, size_t);
/* Remplace un élément d'un tableau compressé par un autre. */
void rpl_item_in_flat_array(flat_array_t *, size_t, void *, size_t);