Fixed building with pthread_t defined as a pointer.

This commit is contained in:
Sergey Kandaurov
2017-09-27 18:34:24 +03:00
parent 9213299d1f
commit 752038eea8
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ nxt_random_stir(nxt_random_t *r)
key.value[0] ^= tv.tv_usec; key.value[0] ^= tv.tv_usec;
key.value[1] ^= tv.tv_sec; key.value[1] ^= tv.tv_sec;
key.value[2] ^= nxt_pid; 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); nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE);

View File

@@ -497,7 +497,7 @@ nxt_vsprintf(u_char *buf, u_char *end, const char *fmt, va_list args)
goto number; goto number;
case 'T': case 'T':
ui64 = (uint64_t) va_arg(args, nxt_tid_t); ui64 = (uint64_t) (uintptr_t) va_arg(args, nxt_tid_t);
sign = 0; sign = 0;
goto number; goto number;
#if 0 #if 0