roken: Move dead code in rk_time_add/sub() into #ifdefs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user