From f59ce9999e0392c3f20984c99622b2e95fbcba7a Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 20 Jan 2025 18:57:04 -0800 Subject: [PATCH] Formatting --- include/cyclone/bignum.h | 2 +- runtime.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/cyclone/bignum.h b/include/cyclone/bignum.h index 30d3313c..cc03e825 100644 --- a/include/cyclone/bignum.h +++ b/include/cyclone/bignum.h @@ -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 diff --git a/runtime.c b/runtime.c index 29523dba..dccc07fe 100644 --- a/runtime.c +++ b/runtime.c @@ -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);