fixed another 64bit compiler warning
authorMartin Willi <martin@strongswan.org>
Fri, 19 Jun 2009 08:19:55 +0000 (10:19 +0200)
committerMartin Willi <martin@strongswan.org>
Fri, 19 Jun 2009 08:19:55 +0000 (10:19 +0200)
src/charon/plugins/unit_tester/tests/test_pool.c

index 3c792ef..ba5330f 100644 (file)
@@ -34,7 +34,7 @@ static void* testing(void *thread)
        {
                char buf[256];
                
-               snprintf(buf, sizeof(buf), "%d-%d@strongswan.org", (int)thread, i);
+               snprintf(buf, sizeof(buf), "%d-%d@strongswan.org", (uintptr_t)thread, i);
                id[i] = identification_create_from_string(buf);
        }
        
@@ -70,7 +70,7 @@ static void* testing(void *thread)
  ******************************************************************************/
 bool test_pool()
 {
-       int i;
+       uintptr_t i;
        void *res;
        pthread_t thread[THREADS];