roken: Move dead code in rk_time_add/sub() into #ifdefs

This commit is contained in:
Nicolas Williams
2023-01-04 16:05:04 -06:00
parent 5395918877
commit c157054c51

View File

@@ -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
}
/*