summaryrefslogtreecommitdiff
path: root/test/pthread/ex3.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-08 01:31:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-08 01:31:24 +0000
commit411770715d77358657b7bbaae8676de525fa3a66 (patch)
tree43b71ba6bd0f0d16b6f13be70a09b1364867c56b /test/pthread/ex3.c
parent64f699811cbc5b91a2900a21dcf880481ceb88a6 (diff)
fix warnings on 64bit hosts
Diffstat (limited to 'test/pthread/ex3.c')
-rw-r--r--test/pthread/ex3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pthread/ex3.c b/test/pthread/ex3.c
index 8005200ef..3e53af1bb 100644
--- a/test/pthread/ex3.c
+++ b/test/pthread/ex3.c
@@ -23,8 +23,8 @@ 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();
@@ -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 */