about summary refs log tree commit diff
path: root/src/time/mktime.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-17 10:39:11 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-17 10:39:11 -0400
commitea81c0624f0213430ae8fb959e30373eeaaf391c (patch)
tree465459ee633ceb927202de641a77f5adbfa31999 /src/time/mktime.c
parentac1bf93fc634274c14d234c44b2e846a93a5cc95 (diff)
downloadmusl-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.c2
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;
 }