summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-05-21 16:34:24 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-05-21 16:37:19 -0700
commit80f3188a3a9789824128f1f6baede66de8c92c37 (patch)
tree6708b5dd8c002dbad62cc2fec7aa8d98da53ae39
parent3880411360a9f2a47629ef30e2878d89ebe0fc02 (diff)
downloadds-80f3188a3a9789824128f1f6baede66de8c92c37.tar.gz
ds-80f3188a3a9789824128f1f6baede66de8c92c37.tar.xz
ds-80f3188a3a9789824128f1f6baede66de8c92c37.zip
588867 - entryusn plugin fails on solaris
https://bugzilla.redhat.com/show_bug.cgi?id=588867 Fix description: _sparcv9_AtomicAdd, _sparcv9_AtomicSub, and _sparcv9_AtomicSet were not correctly declared. It brought in the implicit function declaration, where the return value were casted to 32-bit integer and the comparison against the 64-bit unsigned integer failed. The comparison was in the endless loop and it caused the server hang.
-rw-r--r--ldap/servers/slapd/slapi_counter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/servers/slapd/slapi_counter.c b/ldap/servers/slapd/slapi_counter.c
index 0f56c8ac..c3f1f449 100644
--- a/ldap/servers/slapd/slapi_counter.c
+++ b/ldap/servers/slapd/slapi_counter.c
@@ -42,9 +42,9 @@
#include "slap.h"
#ifdef SOLARIS
-PRUint64 _sparcv9_AtomicSet_il(PRUint64 *address, PRUint64 newval);
-PRUint64 _sparcv9_AtomicAdd_il(PRUint64 *address, PRUint64 val);
-PRUint64 _sparcv9_AtomicSub_il(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSet(PRUint64 *address, PRUint64 newval);
+PRUint64 _sparcv9_AtomicAdd(PRUint64 *address, PRUint64 val);
+PRUint64 _sparcv9_AtomicSub(PRUint64 *address, PRUint64 val);
#endif
#ifdef HPUX