aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_fuchsia.h
diff options
context:
space:
mode:
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