mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
hurd: Fix adjtime call with OLDDELTA == NULL
* sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make it point to a dumb buffer for RPC to fill it.
This commit is contained in:
parent
9d84d0e51d
commit
aaf3045480
@ -1,3 +1,8 @@
|
||||
2016-08-30 Svante Signell <svante.signell@gmail.com>
|
||||
|
||||
* sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
|
||||
it point to a dumb buffer for RPC to fill it.
|
||||
|
||||
2016-08-30 Siddhesh Poyarekar <siddhesh@sourceware.org>
|
||||
|
||||
* sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
|
||||
|
@ -28,11 +28,15 @@ __adjtime (const struct timeval *delta, struct timeval *olddelta)
|
||||
{
|
||||
error_t err;
|
||||
mach_port_t hostpriv;
|
||||
struct timeval dummy;
|
||||
|
||||
err = __get_privileged_ports (&hostpriv, NULL);
|
||||
if (err)
|
||||
return __hurd_fail (EPERM);
|
||||
|
||||
if (olddelta == NULL)
|
||||
olddelta = &dummy;
|
||||
|
||||
err = __host_adjust_time (hostpriv,
|
||||
/* `time_value_t' and `struct timeval' are in
|
||||
fact identical with the names changed. */
|
||||
|
Loading…
Reference in New Issue
Block a user