diff options
author | Nathan Kinder <nkinder@redhat.com> | 2008-10-30 19:06:55 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2008-10-30 19:06:55 +0000 |
commit | 77e2e8a93bd947d4c9957b4570f963a5508cd7b0 (patch) | |
tree | a0ecdeec452493e1f613f5aae6b11da18f0fe712 /ldap/servers/slapd/slapi_counter.c | |
parent | 06e865cf81bb9f877258e91441205a27d619c478 (diff) | |
download | ds-77e2e8a93bd947d4c9957b4570f963a5508cd7b0.tar.gz ds-77e2e8a93bd947d4c9957b4570f963a5508cd7b0.tar.xz ds-77e2e8a93bd947d4c9957b4570f963a5508cd7b0.zip |
Resolves: 207457
Summary: Removed static specifier from __sync_*_8 atomic functions.
Diffstat (limited to 'ldap/servers/slapd/slapi_counter.c')
-rw-r--r-- | ldap/servers/slapd/slapi_counter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ldap/servers/slapd/slapi_counter.c b/ldap/servers/slapd/slapi_counter.c index a3886eb3..7ecac6b1 100644 --- a/ldap/servers/slapd/slapi_counter.c +++ b/ldap/servers/slapd/slapi_counter.c @@ -56,8 +56,8 @@ PRUint64 _sparcv9_AtomicSub_il(PRUint64 *address, PRUint64 val); #if defined LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH) /* On systems that don't have the 64-bit GCC atomic builtins, we need to * implement our own atomic functions using inline assembly code. */ -static PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval); -static PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval); +PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval); +PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval); #endif #if defined LINUX && !HAVE_DECL___SYNC_ADD_AND_FETCH @@ -432,7 +432,7 @@ PRUint64 slapi_counter_get_value(Slapi_Counter *counter) /* On systems that don't have the 64-bit GCC atomic builtins, we need to * implement our own atomic add and subtract functions using inline * assembly code. */ -static PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval) +PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval) { PRUint64 retval = 0; @@ -476,7 +476,7 @@ static PRUint64 __sync_add_and_fetch_8(PRUint64 *ptr, PRUint64 addval) return retval; } -static PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval) +PRUint64 __sync_sub_and_fetch_8(PRUint64 *ptr, PRUint64 subval) { PRUint64 retval = 0; |