aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/alpha/osf_adjtime.c
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2020-01-17 15:29:56 +0100
committerLukasz Majewski <lukma@denx.de>2020-02-07 17:55:08 +0100
commitcde52c2557177903806fed7dd216ff9b2280ceee (patch)
treee907608ceffb87dbe98d07f1cbfd77e36b4f4873 /sysdeps/unix/sysv/linux/alpha/osf_adjtime.c
parent504c98717062cb9bcbd4b3e59e932d04331ddca5 (diff)
downloadglibc-cde52c2557177903806fed7dd216ff9b2280ceee.tar
glibc-cde52c2557177903806fed7dd216ff9b2280ceee.tar.gz
glibc-cde52c2557177903806fed7dd216ff9b2280ceee.tar.bz2
glibc-cde52c2557177903806fed7dd216ff9b2280ceee.zip
y2038: alpha: Rename valid_timeval_to_timeval64 to valid_timeval32_to_timeval
Without this patch the naming convention for functions to convert struct timeval32 to struct timeval (which supports 64 bit time on Alpha) was a bit misleading. The name 'valid_timeval_to_timeval64' suggest conversion of struct timeval to struct __timeval64 (as in ./include/time.h). As on alpha the struct timeval supports 64 bit time it seems more readable to emphasis struct timeval32 in the conversion function name. Hence the helper function naming change to 'valid_timeval32_to_timeval'. Build tests: ./src/scripts/build-many-glibcs.py glibcs Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha/osf_adjtime.c')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/osf_adjtime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/osf_adjtime.c b/sysdeps/unix/sysv/linux/alpha/osf_adjtime.c
index cd864686f6..5ac72e252f 100644
--- a/sysdeps/unix/sysv/linux/alpha/osf_adjtime.c
+++ b/sysdeps/unix/sysv/linux/alpha/osf_adjtime.c
@@ -57,7 +57,7 @@ int
attribute_compat_text_section
__adjtime_tv32 (const struct timeval32 *itv, struct timeval32 *otv)
{
- struct timeval itv64 = valid_timeval_to_timeval64 (*itv);
+ struct timeval itv64 = valid_timeval32_to_timeval (*itv);
struct timeval otv64;
if (__adjtime (&itv64, &otv64) == -1)
@@ -91,7 +91,7 @@ __adjtimex_tv32 (struct timex32 *tx)
tx64.calcnt = tx->calcnt;
tx64.errcnt = tx->errcnt;
tx64.stbcnt = tx->stbcnt;
- tx64.time = valid_timeval_to_timeval64 (tx->time);
+ tx64.time = valid_timeval32_to_timeval (tx->time);
int status = __adjtimex (&tx64);
if (status < 0)