ck_sequence: Constify read-only operations.

ck_pring
Samy Al Bahra 10 years ago
parent 384e8048eb
commit e39223da44

@ -47,7 +47,7 @@ ck_sequence_init(struct ck_sequence *sq)
} }
CK_CC_INLINE static unsigned int CK_CC_INLINE static unsigned int
ck_sequence_read_begin(struct ck_sequence *sq) ck_sequence_read_begin(const struct ck_sequence *sq)
{ {
unsigned int version; unsigned int version;
@ -74,7 +74,7 @@ ck_sequence_read_begin(struct ck_sequence *sq)
} }
CK_CC_INLINE static bool CK_CC_INLINE static bool
ck_sequence_read_retry(struct ck_sequence *sq, unsigned int version) ck_sequence_read_retry(const struct ck_sequence *sq, unsigned int version)
{ {
/* /*

Loading…
Cancel
Save