summaryrefslogtreecommitdiff
path: root/test/testatomic.c
diff options
context:
space:
mode:
authordavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-08 02:03:49 +0000
committerdavi <davi@13f79535-47bb-0310-9956-ffa450edef68>2007-07-08 02:03:49 +0000
commit86d12b2ebee958739a499c95e309b6f4a814d6ff (patch)
tree9f34ce194417990aefd2053097249a43929d8d38 /test/testatomic.c
parent770e5d4b00581f408fa9cd9bb62859b8158f2954 (diff)
downloadlibapr-86d12b2ebee958739a499c95e309b6f4a814d6ff.tar.gz
Remove unused variables and make thread function local.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@554294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testatomic.c')
-rw-r--r--test/testatomic.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/testatomic.c b/test/testatomic.c
index 66326356f..b9fe6279d 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -316,8 +316,6 @@ static APR_INLINE void busyloop_read32(tbox_t *tbox)
static void busyloop_set32(tbox_t *tbox)
{
- apr_uint32_t val;
-
do {
busyloop_read32(tbox);
apr_atomic_set32(tbox->mem, tbox->postval);
@@ -339,8 +337,6 @@ static void busyloop_add32(tbox_t *tbox)
static void busyloop_sub32(tbox_t *tbox)
{
- apr_uint32_t val;
-
do {
busyloop_read32(tbox);
apr_atomic_sub32(tbox->mem, tbox->postval);
@@ -402,7 +398,7 @@ static void busyloop_xchg32(tbox_t *tbox)
} while (--tbox->loop);
}
-void *APR_THREAD_FUNC thread_func_busyloop(apr_thread_t *thd, void *data)
+static void *APR_THREAD_FUNC thread_func_busyloop(apr_thread_t *thd, void *data)
{
tbox_t *tbox = data;