summaryrefslogtreecommitdiffstats
path: root/libcutils/atomic-android-sh.c
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2010-09-28 13:47:03 -0700
committerCarl Shapiro <cshapiro@google.com>2010-09-28 14:06:00 -0700
commitd55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa (patch)
tree409d6c3ac1cb97d41a9422f8e740134d7847bdfd /libcutils/atomic-android-sh.c
parentf62b23f2c1540221621024c850fdf615dda0c903 (diff)
downloadsystem_core-d55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa.zip
system_core-d55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa.tar.gz
system_core-d55f0adfb5ec4202ad5bd5d188e66c0f6a27b0aa.tar.bz2
Qualify the source argument of atomic loads as a const pointer.
Also normalizes the opening brace placment in a few locations. Change-Id: I8f518e933094337d5d3371321326ffc03b3a5f5a
Diffstat (limited to 'libcutils/atomic-android-sh.c')
-rw-r--r--libcutils/atomic-android-sh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/atomic-android-sh.c b/libcutils/atomic-android-sh.c
index abe7d25..f8f1f57 100644
--- a/libcutils/atomic-android-sh.c
+++ b/libcutils/atomic-android-sh.c
@@ -49,12 +49,12 @@ static pthread_mutex_t _swap_locks[SWAP_LOCK_COUNT];
&_swap_locks[((unsigned)(void*)(addr) >> 3U) % SWAP_LOCK_COUNT]
-int32_t android_atomic_acquire_load(volatile int32_t* addr)
+int32_t android_atomic_acquire_load(volatile const int32_t* addr)
{
return *addr;
}
-int32_t android_atomic_release_load(volatile int32_t* addr)
+int32_t android_atomic_release_load(volatile const int32_t* addr)
{
return *addr;
}