[CRIU] [PATCH 73/78] common: lock -- Sync function proto with syscalls

Cyrill Gorcunov gorcunov at openvz.org
Mon Nov 7 08:36:58 PST 2016


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

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/common/lock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/common/lock.h b/include/common/lock.h
index e993a71c9bdc..60d73bd2f53f 100644
--- a/include/common/lock.h
+++ b/include/common/lock.h
@@ -19,8 +19,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;
-- 
2.7.4



More information about the CRIU mailing list