aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
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 /pkg/csource/generated.go
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 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 3224ff69d..1dc6bf4c6 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -981,6 +981,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;
@@ -992,7 +993,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