X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=test_urcu.c;h=2b34798986ae14fc6b80ff6a749f6c800516816d;hp=10d4d9961292d3149d04fe88417a7247de3c8ad8;hb=5e7e64b952ac49cf61c4c3bfc02e5938c3691d94;hpb=f858d07ab45c9a50e458cdcc9d5b26cbaa765de3 diff --git a/test_urcu.c b/test_urcu.c index 10d4d99..2b34798 100644 --- a/test_urcu.c +++ b/test_urcu.c @@ -37,7 +37,7 @@ void *thr_reader(void *arg) struct test_array *local_ptr; printf("thread %s, thread id : %lu, pid %lu\n", - "reader", pthread_self(), getpid()); + "reader", pthread_self(), (unsigned long)getpid()); sleep(2); urcu_register_thread(); @@ -67,7 +67,7 @@ void *thr_writer(void *arg) struct test_array *new, *old; printf("thread %s, thread id : %lu, pid %lu\n", - "writer", pthread_self(), getpid()); + "writer", pthread_self(), (unsigned long)getpid()); sleep(2); for (i = 0; i < 100000; i++) {