Commit cd1ee2e2 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

criu: Fix strict prototypes

To make compiler happy with -Wstrict-prototypes option.
No func change.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent c4702802
...@@ -108,7 +108,7 @@ typedef struct { ...@@ -108,7 +108,7 @@ typedef struct {
# define TASK_SIZE (0xffffe000) # define TASK_SIZE (0xffffe000)
#endif #endif
static inline unsigned long task_size() { return TASK_SIZE; } static inline unsigned long task_size(void) { return TASK_SIZE; }
typedef u64 auxv_t; typedef u64 auxv_t;
typedef u32 tls_t; typedef u32 tls_t;
......
...@@ -29,7 +29,7 @@ extern int dump_socket_opts(int sk, SkOptsEntry *soe); ...@@ -29,7 +29,7 @@ extern int dump_socket_opts(int sk, SkOptsEntry *soe);
extern int restore_socket_opts(int sk, SkOptsEntry *soe); extern int restore_socket_opts(int sk, SkOptsEntry *soe);
extern void release_skopts(SkOptsEntry *); extern void release_skopts(SkOptsEntry *);
extern int restore_prepare_socket(int sk); extern int restore_prepare_socket(int sk);
extern void preload_socket_modules(); extern void preload_socket_modules(void);
extern bool socket_test_collect_bit(unsigned int family, unsigned int proto); extern bool socket_test_collect_bit(unsigned int family, unsigned int proto);
......
...@@ -309,7 +309,7 @@ static int pie_atoi(char *str) ...@@ -309,7 +309,7 @@ static int pie_atoi(char *str)
return ret; return ret;
} }
static int get_proc_fd() static int get_proc_fd(void)
{ {
int ret; int ret;
char buf[11]; char buf[11];
...@@ -346,7 +346,7 @@ static int get_proc_fd() ...@@ -346,7 +346,7 @@ static int get_proc_fd()
return open_detach_mount(proc_mountpoint); return open_detach_mount(proc_mountpoint);
} }
static int parasite_get_proc_fd() static int parasite_get_proc_fd(void)
{ {
int fd, ret; int fd, ret;
...@@ -605,7 +605,7 @@ static noinline void fini_sigreturn(unsigned long new_sp) ...@@ -605,7 +605,7 @@ static noinline void fini_sigreturn(unsigned long new_sp)
ARCH_RT_SIGRETURN(new_sp); ARCH_RT_SIGRETURN(new_sp);
} }
static int fini() static int fini(void)
{ {
unsigned long new_sp; unsigned long new_sp;
......
...@@ -135,7 +135,7 @@ static inline void probe_diag(int nl, struct sock_diag_req *req, int expected_er ...@@ -135,7 +135,7 @@ static inline void probe_diag(int nl, struct sock_diag_req *req, int expected_er
do_rtnl_req(nl, req, req->hdr.nlmsg_len, probe_recv_one, probe_err, &expected_err); do_rtnl_req(nl, req, req->hdr.nlmsg_len, probe_recv_one, probe_err, &expected_err);
} }
void preload_socket_modules() void preload_socket_modules(void)
{ {
int nl; int nl;
struct sock_diag_req req; struct sock_diag_req req;
......
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