criu: arch -- Fix more task_size prototype

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov 2016-09-29 00:34:00 +03:00 committed by Pavel Emelyanov
parent 8e85aed88e
commit 524aeefdd0
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ typedef struct user_fpsimd_state user_fpregs_struct_t;
int munmap(void *addr, size_t length);
static inline unsigned long task_size() {
static inline unsigned long task_size(void) {
unsigned long task_size;
for (task_size = TASK_SIZE_MIN; task_size < TASK_SIZE_MAX; task_size <<= 1)

View file

@ -121,7 +121,7 @@ typedef uint64_t tls_t;
#define TASK_SIZE_USER64 (0x0000400000000000UL)
#define TASK_SIZE TASK_SIZE_USER64
static inline unsigned long task_size() { return TASK_SIZE; }
static inline unsigned long task_size(void) { return TASK_SIZE; }
static inline void *decode_pointer(uint64_t v) { return (void*)v; }
static inline uint64_t encode_pointer(void *p) { return (uint64_t)p; }