2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

types: use siginfo_t from signal.h for rt_signalfn_t declaration

It should fit the sa_sigaction declaration, otherwise compiler
complains about uncasted assignments.

 | restorer.c: In function тАШ__export_restore_taskтАЩ:
 | restorer.c:318:20: error: assignment from incompatible pointer type [-Werror]

So just use siginfo_t here from the system signal.h header.

Signed-off-by: Andrew Grigorev <andrew@ei-grad.ru>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Grigorev
2012-10-18 15:02:37 +04:00
committed by Pavel Emelyanov
parent aa731ee1d7
commit 51e9cd32b2

View File

@@ -3,6 +3,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <signal.h>
#include "bitops.h"
@@ -87,8 +88,7 @@ typedef struct {
unsigned long sig[1];
} rt_sigset_t;
struct siginfo;
typedef void rt_signalfn_t(int, struct siginfo *, void *);
typedef void rt_signalfn_t(int, siginfo_t *, void *);
typedef rt_signalfn_t *rt_sighandler_t;
typedef void rt_restorefn_t(void);