chiark / gitweb /
Further SOURCE_DATE_EPOCH simplification
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 27 Feb 2025 23:00:24 +0000 (23:00 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 27 Feb 2025 23:00:24 +0000 (23:00 +0000)
commit0d2296e4afe2a53bb42006536b6ad0c3564f5da2
tree75a98d0722551f0ac6c28ba10f41c12c97f136d2
parent528c0542ede8d861ace92ff36c4e66281c405537
Further SOURCE_DATE_EPOCH simplification

Rather than mucking about with errno, we can just take advantage of the
fact that on overflow, strtoull() is specified to return ULLONG_MAX,
which is guaranteed to be (much) bigger than the maximum
SOURCE_DATE_EPOCH that we can cope with.  So our usual range check can
cope with overflow as well.
bedstead.c