io_uring: Replace pthread_self with s->tid
authorKhem Raj <raj.khem@gmail.com>
Thu, 25 Aug 2022 01:08:53 +0000 (18:08 -0700)
committerKhem Raj <raj.khem@gmail.com>
Thu, 25 Aug 2022 01:33:34 +0000 (18:33 -0700)
commit6243766bb1660ad8880fffc373121bcc4d61620d
tree5821b401012cb1be195055122f3b740508a54699
parent9d31bc929237e093b497a740b22e3961f8df89c5
io_uring: Replace pthread_self with s->tid

__init_rand64 takes 64bit value and srand48 takes unsigned 32bit value,
pthread_t is opaque type and some libcs ( e.g. musl ) do not define them
in plain old data types and ends up with errors

| t/io_uring.c:809:32: error: incompatible pointer to integer conversion passing 'pthread_t' (aka 'struct __pthread *') to parameter of type 'uint64_t' (aka 'unsigned long') [-Wint-conver
sion]
|         __init_rand64(&s->rand_state, pthread_self());
|                                       ^~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
t/io_uring.c