fixed warning
This commit is contained in:
parent
6322d86531
commit
12e4d77d9e
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ clock_ct_to_ts(struct clocktime *ct, struct timespec *ts)
|
|||
if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 ||
|
||||
ct->day > days_in_month(year, ct->mon) ||
|
||||
ct->hour > 23 || ct->min > 59 || ct->sec > 59 ||
|
||||
(sizeof(time_t) == 4 && year > 2037)) { /* time_t overflow */
|
||||
(year > 2037 && sizeof(time_t) == 4)) { /* time_t overflow */
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue