aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/osmocom/core/bitvec.h2
-rw-r--r--src/bitvec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/core/bitvec.h b/include/osmocom/core/bitvec.h
index c3c11531..19e2af8a 100644
--- a/include/osmocom/core/bitvec.h
+++ b/include/osmocom/core/bitvec.h
@@ -70,7 +70,7 @@ int bitvec_set_bit_pos(struct bitvec *bv, unsigned int bitnum,
enum bit_value bit);
int bitvec_set_bit(struct bitvec *bv, enum bit_value bit);
int bitvec_get_bit_high(struct bitvec *bv);
-int bitvec_set_bits(struct bitvec *bv, enum bit_value *bits, unsigned int count);
+int bitvec_set_bits(struct bitvec *bv, const enum bit_value *bits, unsigned int count);
int bitvec_set_uint(struct bitvec *bv, uint32_t in, unsigned int count);
int bitvec_get_uint(struct bitvec *bv, unsigned int num_bits);
int bitvec_find_bit_pos(const struct bitvec *bv, unsigned int n, enum bit_value val);
diff --git a/src/bitvec.c b/src/bitvec.c
index 88343c4f..ef8fd0e8 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -198,7 +198,7 @@ int bitvec_get_bit_high(struct bitvec *bv)
* \param[in] bits array of \ref bit_value
* \param[in] count number of bits to set
* \return 0 on success; negative in case of error */
-int bitvec_set_bits(struct bitvec *bv, enum bit_value *bits, unsigned int count)
+int bitvec_set_bits(struct bitvec *bv, const enum bit_value *bits, unsigned int count)
{
int i, rc;