summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-06-27 15:19:10 +0200
committerHarald Welte <laforge@gnumonks.org>2016-06-27 15:19:10 +0200
commit14bf28a43de485aa76970599378971d27b2a23a7 (patch)
treeb1eb2a884bac53261538fce85c07b169d8195573 /include/osmocom
parentf627c0f0afb280d30aa00da395560db963aba462 (diff)
Mark input parameter to bitvec_set_bits() as 'const'
The input data is accessed in a read-only manner, so it should be marked with the const qualifier. Change-Id: I0d6b86289fa647594f3da1f1c0e0168685307a37
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/bitvec.h2
1 files changed, 1 insertions, 1 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);