make array parameter const

This commit is contained in:
Nils O. Selåsdal
2015-02-10 20:57:36 +01:00
parent aeee4de26a
commit 83ce414beb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ void uc_bv_set_all(struct UCBitVec *v);
* int a[] = {0,1,1,1,0}; * int a[] = {0,1,1,1,0};
* set_bits_from_array(v,a,5); * set_bits_from_array(v,a,5);
* */ * */
void uc_bv_set_bits_from_array(struct UCBitVec *v,char *array,size_t array_len); void uc_bv_set_bits_from_array(struct UCBitVec *v,const char *array,size_t array_len);
#ifdef __cplusplus #ifdef __cplusplus
+1 -1
View File
@@ -63,7 +63,7 @@ void uc_bv_set_bit(struct UCBitVec *v,int b)
v->vec[bit_index(b)] |= 1UL << (bit_offset(b)); v->vec[bit_index(b)] |= 1UL << (bit_offset(b));
} }
void uc_bv_set_bits_from_array(struct UCBitVec *v,char *array,size_t array_len) void uc_bv_set_bits_from_array(struct UCBitVec *v,const char *array,size_t array_len)
{ {
size_t i; size_t i;