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

ipc: Drop u32[2] from image, simply use u64 all the time

This eliminate

 | ipc_ns.c:287:2: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]

and makes code simplier.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-02-01 16:15:15 +04:00
parent 7197b9467d
commit 4f83d028ff
2 changed files with 18 additions and 50 deletions

View File

@@ -111,8 +111,8 @@ struct ipc_ns_entry {
u32 msg_ctlmnb;
u32 msg_ctlmni;
u32 auto_msgmni;
u32 shm_ctlmax[2];
u64 shm_ctlall[2];
u64 shm_ctlmax;
u64 shm_ctlall;
u32 shm_ctlmni;
u32 shm_rmid_forced;
u32 mq_queues_max;