[CRIU] [PATCH 2/2] sigframe: cast the pointer to the field ucontext::uc_sigmask to k_rtsigset_t
Alexander Kartashov
alekskartashov at parallels.com
Sat Apr 5 05:08:20 PDT 2014
The type of the field ucontext::uc_sigmask isn't k_rtsigset_t
if the struct ucontext is imported from system headers
rather than provided by an architecture-specific header.
Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
Cc: Andrey Vagin <avagin at openvz.org>
---
sigframe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sigframe.c b/sigframe.c
index 62d968c..4487493 100644
--- a/sigframe.c
+++ b/sigframe.c
@@ -10,7 +10,7 @@ int construct_sigframe(struct rt_sigframe *sigframe,
struct rt_sigframe *rsigframe,
CoreEntry *core)
{
- k_rtsigset_t *blk_sigset = &RT_SIGFRAME_UC(sigframe).uc_sigmask;
+ k_rtsigset_t *blk_sigset = (k_rtsigset_t*)&RT_SIGFRAME_UC(sigframe).uc_sigmask;
if (core->tc)
memcpy(blk_sigset, &core->tc->blk_sigset, sizeof(k_rtsigset_t));
--
1.7.9.5
More information about the CRIU
mailing list