From 14bf28a43de485aa76970599378971d27b2a23a7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 27 Jun 2016 15:19:10 +0200 Subject: 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 --- src/bitvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bitvec.c') 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; -- cgit v1.2.3