common: lock -- Sync function proto with syscalls

They are the same in meaning and may collide on building.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Cyrill Gorcunov 2016-10-31 16:31:47 +03:00 committed by Pavel Emelyanov
parent d82b621f97
commit 6a0ed5e128

View file

@ -18,8 +18,8 @@
#else
# include <unistd.h>
# include <sys/syscall.h>
static inline long sys_futex(void *addr1, int op, int val1,
struct timespec *timeout, void *addr2, int val3)
static inline long sys_futex (uint32_t *addr1, int op, uint32_t val1,
struct timespec *timeout, uint32_t *addr2, uint32_t val3)
{
int rc = syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
if (rc == -1) rc = -errno;