From d9abf01436ff081a08885f1e9f8b271fc708cb72 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 6 Mar 2010 11:28:49 +0100 Subject: mark some occasions of bitvec as 'const' as appropriate --- include/osmocore/bitvec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/osmocore/bitvec.h b/include/osmocore/bitvec.h index 11cb01ea..7a26bce4 100644 --- a/include/osmocore/bitvec.h +++ b/include/osmocore/bitvec.h @@ -40,10 +40,10 @@ struct bitvec { }; /* check if the bit is 0 or 1 for a given position inside a bitvec */ -enum bit_value bitvec_get_bit_pos(struct bitvec *bv, unsigned int bitnr); +enum bit_value bitvec_get_bit_pos(const struct bitvec *bv, unsigned int bitnr); /* get the Nth set bit inside the bit vector */ -unsigned int bitvec_get_nth_set_bit(struct bitvec *bv, unsigned int n); +unsigned int bitvec_get_nth_set_bit(const struct bitvec *bv, unsigned int n); /* Set a bit at given position */ int bitvec_set_bit_pos(struct bitvec *bv, unsigned int bitnum, -- cgit v1.2.3