env-util: also rename getenv_uint64_secure() → secure_getenv_uint64()

As in the previous commit, let's not change the order of the words
compared to the underlying glibc API.
This commit is contained in:
Lennart Poettering
2024-02-28 15:38:00 +01:00
parent efb9b3bab2
commit dbe253aa9d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ static int write_temporary_passwd(
static usec_t epoch_or_now(void) {
uint64_t epoch;
if (getenv_uint64_secure("SOURCE_DATE_EPOCH", &epoch) >= 0) {
if (secure_getenv_uint64("SOURCE_DATE_EPOCH", &epoch) >= 0) {
if (epoch > UINT64_MAX/USEC_PER_SEC) /* Overflow check */
return USEC_INFINITY;
return (usec_t) epoch * USEC_PER_SEC;