set errno to ERANGE not EOVERFLOW on range error
This commit is contained in:
@@ -108,6 +108,6 @@ parse_timeout(const char *timestr)
|
|||||||
|
|
||||||
debug_return_int(timeout);
|
debug_return_int(timeout);
|
||||||
overflow:
|
overflow:
|
||||||
errno = EOVERFLOW;
|
errno = ERANGE;
|
||||||
debug_return_int(-1);
|
debug_return_int(-1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user