summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorkre <kre@NetBSD.org>2017-10-27 00:55:27 +0000
committerkre <kre@NetBSD.org>2017-10-27 00:55:27 +0000
commitd29ad8975e8e3f68416f8ca965f5ffc2a0ba84da (patch)
tree72a3bdcb909c4d98733ab04f48e500ce0acd21ac /sys/dev
parent244fb419cf138434bd844f862707bebd9794cd69 (diff)
Remove bogus errno checks, mktime() (and timegm()) does not guarantee
to leave errno unaltered if there is no error. And does not. While here, write -1 the same way everyone else does (not ~0, which would not even be negative on a 1's complement host, if you can find one). And while not needed for the test, but so that if checked, the result is more likely to be what is anticipated, set tm_mday to an in-range value in the mtime_negyear test (otherwise the correction results in the result movng backwards to the last day of the previous month, which is the end of Decemper, 1898, rather than the 1899 one would expect from year -1.)
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions