trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1171264 - in /trafficserver/traffic/trunk/lib/ts: test_atomic.cc test_freelist.cc
Date Thu, 15 Sep 2011 20:39:25 GMT
Author: zwoop
Date: Thu Sep 15 20:39:25 2011
New Revision: 1171264

URL: http://svn.apache.org/viewvc?rev=1171264&view=rev
Log:
Fix make check, I think ...

Modified:
    trafficserver/traffic/trunk/lib/ts/test_atomic.cc
    trafficserver/traffic/trunk/lib/ts/test_freelist.cc

Modified: trafficserver/traffic/trunk/lib/ts/test_atomic.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/ts/test_atomic.cc?rev=1171264&r1=1171263&r2=1171264&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/ts/test_atomic.cc (original)
+++ trafficserver/traffic/trunk/lib/ts/test_atomic.cc Thu Sep 15 20:39:25 2011
@@ -211,7 +211,7 @@ main(int argc, const char *argv[])
 #if !defined(freebsd)
       pthread_attr_setstacksize(&attr, 1024 * 1024);
 #endif
-      ink_assert(pthread_create(&tid, &attr, testalist, (void *) ali) == 0);
+      ink_assert(pthread_create(&tid, &attr, testalist, (void *)((intptr_t)ali))
== 0);
     }
     while (al_done != MAX_ALIST_TEST)
       sleep(1);

Modified: trafficserver/traffic/trunk/lib/ts/test_freelist.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/lib/ts/test_freelist.cc?rev=1171264&r1=1171263&r2=1171264&view=diff
==============================================================================
--- trafficserver/traffic/trunk/lib/ts/test_freelist.cc (original)
+++ trafficserver/traffic/trunk/lib/ts/test_freelist.cc Thu Sep 15 20:39:25 2011
@@ -75,15 +75,13 @@ test(void *d)
 int
 main(int argc, char *argv[])
 {
-  ink_thread threads[NTHREADS];
-  //void *status;
   int i;
 
   flist = ink_freelist_create("woof", 64, 256, 0, 8);
 
   for (i = 0; i < NTHREADS; i++) {
     fprintf(stderr, "Create thread %d\n", i);
-    threads[i] = ink_thread_create(test, (void *) i);
+    ink_thread_create(test, (void *)((intptr_t)i));
   }
 
   test((void *) NTHREADS);



Mime
View raw message