summaryrefslogtreecommitdiffstats
path: root/test/pthread/ex3.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-22 01:56:31 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-22 01:56:31 +0000
commitc969ef4b8fc1d06c13203b36f8cf5bb61a7730f0 (patch)
treeeb2da173a5661b2b2e615045f26f7b69e774290d /test/pthread/ex3.c
parentfea84e591f94b025ef7c2da843ae80b809f93dbe (diff)
downloaduClibc-alpine-c969ef4b8fc1d06c13203b36f8cf5bb61a7730f0.tar.bz2
uClibc-alpine-c969ef4b8fc1d06c13203b36f8cf5bb61a7730f0.tar.xz
Merge from trunk. Whoa crap.
Diffstat (limited to 'test/pthread/ex3.c')
-rw-r--r--test/pthread/ex3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/pthread/ex3.c b/test/pthread/ex3.c
index 8005200ef..8ef779789 100644
--- a/test/pthread/ex3.c
+++ b/test/pthread/ex3.c
@@ -23,12 +23,12 @@ volatile int started;
int main(int argc, char ** argv)
{
- int i;
- int pid;
+ unsigned long i;
+ unsigned long pid;
/* create a number to search for */
pid = getpid();
- printf("Searching for the number = %d...\n", pid);
+ printf("Searching for the number = %ld...\n", pid);
/* Initialize the mutex lock */
pthread_mutex_init(&lock, NULL);
@@ -66,8 +66,8 @@ void print_it(void *arg)
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 */