aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_akaros.h
diff options
context:
space:
mode:
authormunjinoo <2jwdream7029@naver.com>2019-05-06 13:55:50 +0900
committerDmitry Vyukov <dvyukov@google.com>2019-05-07 08:48:35 +0200
commit001e36bc7862e1663aa5e6608882e78f08ebab41 (patch)
tree68f14264f40fe4a08b765ea4e3a225077307dec3 /executor/executor_akaros.h
parent04e9d8cedd9dc356d116c5387eac8c1ea9d547f7 (diff)
executor: change syscall argument type to intptr_t
The type size of long depends on compiler. Therefore, changing to intptr_t makes it depends on architecture.
Diffstat (limited to 'executor/executor_akaros.h')
-rw-r--r--executor/executor_akaros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor_akaros.h b/executor/executor_akaros.h
index e60e7cfc6..82cae909d 100644
--- a/executor/executor_akaros.h
+++ b/executor/executor_akaros.h
@@ -19,7 +19,7 @@ static void os_init(int argc, char** argv, void* data, size_t data_size)
}
}
-static long execute_syscall(const call_t* c, long a[kMaxArgs])
+static intptr_t execute_syscall(const call_t* c, intptr_t a[kMaxArgs])
{
return syscall(c->sys_nr, a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
}