Formatting

This commit is contained in:
Justin Ethier 2025-01-20 18:57:04 -08:00
parent d7f624ad24
commit f59ce9999e
2 changed files with 3 additions and 4 deletions

View file

@ -443,7 +443,7 @@ extern "C" {
* It is compatible with `rng_get_bytes()` from libtomcrypt so you could
* provide that one and then set `ltm_rng = rng_get_bytes;` */
extern unsigned long (*ltm_rng)(unsigned char *out, unsigned long outlen,
void (*callback)(void));
void(*callback)(void));
extern void (*ltm_rng_callback)(void);
#endif

View file

@ -7140,9 +7140,8 @@ void *Cyc_init_thread(object thread_and_thunk, int argc, object * args)
ck_pr_cas_int((int *)&(thd->thread_state), CYC_THREAD_STATE_NEW,
CYC_THREAD_STATE_RUNNABLE);
if (ck_pr_cas_int(&cyclone_thread_key_create, 1, 0)) {
int r =
pthread_key_create(&cyclone_thread_key,
(void (*)(void *))Cyc_cancel_thread);
int r = pthread_key_create(&cyclone_thread_key,
(void (*)(void *))Cyc_cancel_thread);
assert(r == 0);
}
pthread_setspecific(cyclone_thread_key, thd);