summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-04-19 19:25:04 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-04-19 19:25:04 (GMT)
commitc177597d6da5dedb32aa176e8370db8ffb7f87aa (patch)
tree26f7eb2702ba4aa3dfd7267d74fe78ad79791a8c /src/common
parent35f37c72e9d81e478395914da6c10b3c546761a7 (diff)
Handled static strings as well as dynamic strings in comments.
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);