diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-17 10:39:11 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-17 10:39:11 -0400 |
commit | ea81c0624f0213430ae8fb959e30373eeaaf391c (patch) | |
tree | 465459ee633ceb927202de641a77f5adbfa31999 /src/time/mktime.c | |
parent | ac1bf93fc634274c14d234c44b2e846a93a5cc95 (diff) | |
download | musl-ea81c0624f0213430ae8fb959e30373eeaaf391c.tar.gz musl-ea81c0624f0213430ae8fb959e30373eeaaf391c.tar.xz musl-ea81c0624f0213430ae8fb959e30373eeaaf391c.zip |
fix error code on time conversion overflows
POSIX mandates EOVERFLOW for this condition.
Diffstat (limited to 'src/time/mktime.c')
-rw-r--r-- | src/time/mktime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/mktime.c b/src/time/mktime.c index e38b4619..ef1fb425 100644 --- a/src/time/mktime.c +++ b/src/time/mktime.c @@ -25,6 +25,6 @@ time_t mktime(struct tm *tm) return t; error: - errno = EINVAL; + errno = EOVERFLOW; return -1; } |