aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_fuchsia.h
diff options
context:
space:
mode:
authorMarco Vanotti <mvanotti@users.noreply.github.com>2019-07-16 17:09:43 -0700
committerGitHub <noreply@github.com>2019-07-16 17:09:43 -0700
commit0d10349cf0b4a9f98490378709bd9a83bd0042d6 (patch)
tree13d71c3bddfc1af2f8fb837463430ebd7539509d /executor/common_fuchsia.h
parent4ec4ea48904fe8b1ddfe85e84ea117b9dfdc90f2 (diff)
sys/fuchsia: update zx_clock_get syscall (#1292)
* sys/fuchsia: update zx_clock_get. zx_clock_get was deprecated and replaced by zx_clock_get_new. In a recent CL[0], they replaced the zx_clock_get by zx_clock_get_new and moved all client. This commit updates syzkaller to use the new function. [0]: https://fuchsia-review.googlesource.com/c/fuchsia/+/298575 * run make extract && make generate
Diffstat (limited to 'executor/common_fuchsia.h')
-rw-r--r--executor/common_fuchsia.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/common_fuchsia.h b/executor/common_fuchsia.h
index 72b578012..5099100d0 100644
--- a/executor/common_fuchsia.h
+++ b/executor/common_fuchsia.h
@@ -223,6 +223,7 @@ static long syz_job_default(void)
static long syz_future_time(volatile long when)
{
zx_time_t delta_ms;
+ zx_time_t now;
switch (when) {
case 0:
delta_ms = 5;
@@ -234,7 +235,7 @@ static long syz_future_time(volatile long when)
delta_ms = 10000;
break;
}
- zx_time_t now = zx_clock_get(ZX_CLOCK_MONOTONIC);
+ zx_clock_get(ZX_CLOCK_MONOTONIC, &now);
return now + delta_ms * 1000 * 1000;
}
#endif