From 411770715d77358657b7bbaae8676de525fa3a66 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 8 Feb 2006 01:31:24 +0000 Subject: fix warnings on 64bit hosts --- test/pthread/ex3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/pthread/ex3.c') 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 */ -- cgit v1.2.3