From c157054c51224a0d972051627723d51acb9de478 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 4 Jan 2023 16:05:04 -0600 Subject: [PATCH] roken: Move dead code in rk_time_add/sub() into #ifdefs --- lib/roken/timeval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/timeval.c b/lib/roken/timeval.c index 3012513ee..71fdd009f 100644 --- a/lib/roken/timeval.c +++ b/lib/roken/timeval.c @@ -83,9 +83,9 @@ rk_time_add(time_t t, time_t delta) return UINT64_MAX; #else #error "Unexpected sizeof(time_t)" -#endif #endif return t + delta; +#endif } ROKEN_LIB_FUNCTION time_t ROKEN_LIB_CALL @@ -122,8 +122,8 @@ rk_time_sub(time_t t, time_t delta) /* Both t and delta are non-negative. */ if (delta > t) return 0; -#endif return t - delta; +#endif } /*