2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

criu: Fix strict prototypes

To make compiler happy with -Wstrict-prototypes option.
No func change.

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-28 12:37:00 +03:00
committed by Pavel Emelyanov
parent c4702802f9
commit cd1ee2e2a2
4 changed files with 6 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ typedef struct {
# define TASK_SIZE (0xffffe000)
#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 u32 tls_t;

View File

@@ -29,7 +29,7 @@ extern int dump_socket_opts(int sk, SkOptsEntry *soe);
extern int restore_socket_opts(int sk, SkOptsEntry *soe);
extern void release_skopts(SkOptsEntry *);
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);

View File

@@ -309,7 +309,7 @@ static int pie_atoi(char *str)
return ret;
}
static int get_proc_fd()
static int get_proc_fd(void)
{
int ret;
char buf[11];
@@ -346,7 +346,7 @@ static int get_proc_fd()
return open_detach_mount(proc_mountpoint);
}
static int parasite_get_proc_fd()
static int parasite_get_proc_fd(void)
{
int fd, ret;
@@ -605,7 +605,7 @@ static noinline void fini_sigreturn(unsigned long new_sp)
ARCH_RT_SIGRETURN(new_sp);
}
static int fini()
static int fini(void)
{
unsigned long new_sp;

View File

@@ -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);
}
void preload_socket_modules()
void preload_socket_modules(void)
{
int nl;
struct sock_diag_req req;