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;
|
return UINT64_MAX;
|
||||||
#else
|
#else
|
||||||
#error "Unexpected sizeof(time_t)"
|
#error "Unexpected sizeof(time_t)"
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
return t + delta;
|
return t + delta;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ROKEN_LIB_FUNCTION time_t ROKEN_LIB_CALL
|
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. */
|
/* Both t and delta are non-negative. */
|
||||||
if (delta > t)
|
if (delta > t)
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
|
||||||
return t - delta;
|
return t - delta;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user