summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bits.c2
-rw-r--r--src/common/bits.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/bits.c b/src/common/bits.c
index b08dcb4..90cb098 100644
--- a/src/common/bits.c
+++ b/src/common/bits.c
@@ -460,7 +460,7 @@ void or_bit_field(bitfield_t *dest, const bitfield_t *src)
* *
******************************************************************************/
-bool test_in_bit_field(bitfield_t *field, size_t first, size_t count)
+bool test_in_bit_field(const bitfield_t *field, size_t first, size_t count)
{
bool result; /* Valeur retrouvée à renvoyer */
size_t last; /* Point d'arrêt de la boucle */
diff --git a/src/common/bits.h b/src/common/bits.h
index 074aac4..6d8ea5b 100644
--- a/src/common/bits.h
+++ b/src/common/bits.h
@@ -70,7 +70,7 @@ void and_bit_field(bitfield_t *, const bitfield_t *);
void or_bit_field(bitfield_t *, const bitfield_t *);
/* Détermine si un bit est à 1 dans un champ de bits. */
-bool test_in_bit_field(bitfield_t *, size_t, size_t);
+bool test_in_bit_field(const bitfield_t *, size_t, size_t);
/* Indique si deux champs de bits sont identiques ou non. */
bool is_bit_field_equal_to(const bitfield_t *, const bitfield_t *);