summaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/bitvec.c2
1 files changed, 1 insertions, 1 deletions
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;