From e39223da44b4eb98107400e07ac3acff07afefe2 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Wed, 3 Sep 2014 13:06:55 -0400 Subject: [PATCH] ck_sequence: Constify read-only operations. --- include/ck_sequence.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ck_sequence.h b/include/ck_sequence.h index b7fcb48..c5ca193 100644 --- a/include/ck_sequence.h +++ b/include/ck_sequence.h @@ -47,7 +47,7 @@ ck_sequence_init(struct ck_sequence *sq) } 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; @@ -74,7 +74,7 @@ ck_sequence_read_begin(struct ck_sequence *sq) } 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) { /*