mirror of
https://sourceware.org/git/glibc.git
synced 2025-11-28 23:44:09 +03:00
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);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
@@ -40,6 +40,7 @@ __ntp_gettime64 (struct __ntptimeval64 *ntv)
|
|||||||
ntv->time = tntx.time;
|
ntv->time = tntx.time;
|
||||||
ntv->maxerror = tntx.maxerror;
|
ntv->maxerror = tntx.maxerror;
|
||||||
ntv->esterror = tntx.esterror;
|
ntv->esterror = tntx.esterror;
|
||||||
|
ntv->tai = tntx.tai;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user