Commit 6a0ed5e1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

common: lock -- Sync function proto with syscalls

They are the same in meaning and may collide on building.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent d82b621f
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#else #else
# include <unistd.h> # include <unistd.h>
# include <sys/syscall.h> # include <sys/syscall.h>
static inline long sys_futex(void *addr1, int op, int val1, static inline long sys_futex (uint32_t *addr1, int op, uint32_t val1,
struct timespec *timeout, void *addr2, int val3) struct timespec *timeout, uint32_t *addr2, uint32_t val3)
{ {
int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
if (rc == -1) rc = -errno; if (rc == -1) rc = -errno;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment