apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r554294 - /apr/apr/trunk/test/testatomic.c
Date Sun, 08 Jul 2007 02:03:49 GMT
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;
 



Mime
View raw message