From 752038eea857988045ce72252e0d1c19509981b3 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Wed, 27 Sep 2017 18:34:24 +0300 Subject: Fixed building with pthread_t defined as a pointer. --- src/nxt_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nxt_random.c') diff --git a/src/nxt_random.c b/src/nxt_random.c index 38b14e56..3dde1f15 100644 --- a/src/nxt_random.c +++ b/src/nxt_random.c @@ -85,7 +85,7 @@ nxt_random_stir(nxt_random_t *r) key.value[0] ^= tv.tv_usec; key.value[1] ^= tv.tv_sec; key.value[2] ^= nxt_pid; - key.value[3] ^= nxt_thread_tid(NULL); + key.value[3] ^= (uintptr_t) nxt_thread_tid(NULL); } nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); -- cgit