diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-20 17:15:45 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-20 17:58:56 +0200 |
commit | b6ad64b907ab0066902215cf28eadc1e97307e84 (patch) | |
tree | 32228026e16b3206fcb607e8ac0bae25be51edcb /sysdeps/unix/sysv/linux | |
parent | 901ac8431c9c031673f965e30b0d4a24ec3b8370 (diff) | |
download | glibc-b6ad64b907ab0066902215cf28eadc1e97307e84.tar.gz glibc-b6ad64b907ab0066902215cf28eadc1e97307e84.tar.xz glibc-b6ad64b907ab0066902215cf28eadc1e97307e84.zip |
Linux: Add missing handling of tai field to __ntp_gettime64
This fixes a build error: ../sysdeps/unix/sysv/linux/ntp_gettime.c: In function ‘__ntp_gettime’: ../sysdeps/unix/sysv/linux/ntp_gettime.c:56:10: error: ‘ntv64.tai’ is used uninitialized in this function [-Werror=uninitialized] 56 | *ntv = valid_ntptimeval64_to_ntptimeval (ntv64); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/ntp_gettime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/ntp_gettime.c b/sysdeps/unix/sysv/linux/ntp_gettime.c index 8ce5d13e00..2fdc6feb31 100644 --- a/sysdeps/unix/sysv/linux/ntp_gettime.c +++ b/sysdeps/unix/sysv/linux/ntp_gettime.c @@ -40,6 +40,7 @@ __ntp_gettime64 (struct __ntptimeval64 *ntv) ntv->time = tntx.time; ntv->maxerror = tntx.maxerror; ntv->esterror = tntx.esterror; + ntv->tai = tntx.tai; return result; } |