summaryrefslogtreecommitdiff
path: root/contrib/tzcode
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2014-11-11 04:07:41 +0000
committerEnji Cooper <ngie@FreeBSD.org>2014-11-11 04:07:41 +0000
commit0b837c87ceea68219a59bb7b1fe5357d214b22a7 (patch)
tree53a76f81b290bbed7b759da83b41eb43d0a030ae /contrib/tzcode
parentad11def5216e921e38db43caaea835b84d76815a (diff)
downloadsrc-test2-0b837c87ceea68219a59bb7b1fe5357d214b22a7.tar.gz
src-test2-0b837c87ceea68219a59bb7b1fe5357d214b22a7.zip
Notes
Diffstat (limited to 'contrib/tzcode')
-rw-r--r--contrib/tzcode/stdtime/localtime.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/contrib/tzcode/stdtime/localtime.c b/contrib/tzcode/stdtime/localtime.c
index 51119f552a55..9605eeb30e52 100644
--- a/contrib/tzcode/stdtime/localtime.c
+++ b/contrib/tzcode/stdtime/localtime.c
@@ -1792,11 +1792,7 @@ int delta;
number0 = *number;
*number += delta;
- if ((*number < number0) != (delta < 0)) {
- errno = EOVERFLOW;
- return (1);
- }
- return (0);
+ return (*number < number0) != (delta < 0);
}
static int
@@ -1808,11 +1804,7 @@ int delta;
number0 = *number;
*number += delta;
- if ((*number < number0) != (delta < 0)) {
- errno = EOVERFLOW;
- return (1);
- }
- return (0);
+ return (*number < number0) != (delta < 0);
}
static int