From 58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 6 Aug 2022 10:13:20 +0900 Subject: Adjust styles [ci skip] --- thread_sync.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'thread_sync.c') diff --git a/thread_sync.c b/thread_sync.c index 0359ac2214..63db1c4392 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -624,7 +624,8 @@ rb_mutex_synchronize_m(VALUE self) return rb_mutex_synchronize(self, rb_yield, Qundef); } -void rb_mutex_allow_trap(VALUE self, int val) +void +rb_mutex_allow_trap(VALUE self, int val) { Check_TypedStruct(self, &mutex_data_type); @@ -714,7 +715,8 @@ queue_ptr(VALUE obj) #define QUEUE_CLOSED FL_USER5 static rb_hrtime_t -queue_timeout2hrtime(VALUE timeout) { +queue_timeout2hrtime(VALUE timeout) +{ if (NIL_P(timeout)) { return (rb_hrtime_t)0; } -- cgit v1.2.3