svn commit: trunk/uClibc/test/pthread

vapier at uclibc.org vapier at uclibc.org
Wed Feb 8 01:31:26 UTC 2006


Author: vapier
Date: 2006-02-07 17:31:24 -0800 (Tue, 07 Feb 2006)
New Revision: 13874

Log:
fix warnings on 64bit hosts

Modified:
   trunk/uClibc/test/pthread/ex3.c
   trunk/uClibc/test/pthread/ex7.c


Changeset:
Modified: trunk/uClibc/test/pthread/ex3.c
===================================================================
--- trunk/uClibc/test/pthread/ex3.c	2006-02-08 01:31:06 UTC (rev 13873)
+++ trunk/uClibc/test/pthread/ex3.c	2006-02-08 01:31:24 UTC (rev 13874)
@@ -23,8 +23,8 @@
 
 int main(int argc, char ** argv)
 {
-  int i;
-  int pid;
+  unsigned long i;
+  unsigned long pid;
 
   /* create a number to search for */
   pid = getpid();
@@ -66,8 +66,8 @@
 
 void *search(void *arg)
 {
-  int num = (int) arg;
-  int i, j, ntries;
+  unsigned long num = (unsigned long) arg;
+  unsigned long i, j, ntries;
   pthread_t tid;
 
   /* get the calling thread ID */

Modified: trunk/uClibc/test/pthread/ex7.c
===================================================================
--- trunk/uClibc/test/pthread/ex7.c	2006-02-08 01:31:06 UTC (rev 13873)
+++ trunk/uClibc/test/pthread/ex7.c	2006-02-08 01:31:24 UTC (rev 13874)
@@ -25,7 +25,7 @@
 void *
 test_thread (void *ms_param)
 {
-    int status = 0;
+    unsigned long status = 0;
     event_t foo;
     struct timespec time;
     struct timeval  now;




More information about the uClibc-cvs mailing list