diff --git a/bedstead.c b/bedstead.c index a4f30e4..e0b12af 100644 --- a/bedstead.c +++ b/bedstead.c @@ -98,7 +98,6 @@ #include #include -#include #include #include #include @@ -3149,11 +3148,9 @@ time_for_ttx(void) /* Work out what timestamp to use. */ if ((epochstr = getenv("SOURCE_DATE_EPOCH")) != NULL) { - errno = 0; epochull = strtoull(epochstr, &endptr, 10); if (!isdigit((unsigned char)epochstr[0]) || endptr == epochstr || *endptr != '\0' || - errno == ERANGE || /* Allow years up to 9999. */ epochull >= 253402300800) { fprintf(stderr, "Invalid SOURCE_DATE_EPOCH\n");