You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by da...@apache.org on 2007/07/08 04:03:49 UTC
svn commit: r554294 - /apr/apr/trunk/test/testatomic.c
Author: davi
Date: Sat Jul 7 19:03:49 2007
New Revision: 554294
URL: http://svn.apache.org/viewvc?view=rev&rev=554294
Log:
Remove unused variables and make thread function local.
Modified:
apr/apr/trunk/test/testatomic.c
Modified: apr/apr/trunk/test/testatomic.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testatomic.c?view=diff&rev=554294&r1=554293&r2=554294
==============================================================================
--- apr/apr/trunk/test/testatomic.c (original)
+++ apr/apr/trunk/test/testatomic.c Sat Jul 7 19:03:49 2007
@@ -316,8 +316,6 @@
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_sub32(tbox_t *tbox)
{
- apr_uint32_t val;
-
do {
busyloop_read32(tbox);
apr_atomic_sub32(tbox->mem, tbox->postval);
@@ -402,7 +398,7 @@
} 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;