diff options
Diffstat (limited to 'ipc/msg.c')
-rw-r--r-- | ipc/msg.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -74,8 +74,7 @@ static struct ipc_ids init_msg_ids; | |||
74 | #define msg_ids(ns) (*((ns)->ids[IPC_MSG_IDS])) | 74 | #define msg_ids(ns) (*((ns)->ids[IPC_MSG_IDS])) |
75 | 75 | ||
76 | #define msg_unlock(msq) ipc_unlock(&(msq)->q_perm) | 76 | #define msg_unlock(msq) ipc_unlock(&(msq)->q_perm) |
77 | #define msg_buildid(ns, id, seq) \ | 77 | #define msg_buildid(id, seq) ipc_buildid(id, seq) |
78 | ipc_buildid(&msg_ids(ns), id, seq) | ||
79 | 78 | ||
80 | static void freeque(struct ipc_namespace *, struct msg_queue *); | 79 | static void freeque(struct ipc_namespace *, struct msg_queue *); |
81 | static int newque(struct ipc_namespace *, struct ipc_params *); | 80 | static int newque(struct ipc_namespace *, struct ipc_params *); |
@@ -211,7 +210,7 @@ static int newque(struct ipc_namespace *ns, struct ipc_params *params) | |||
211 | return -ENOSPC; | 210 | return -ENOSPC; |
212 | } | 211 | } |
213 | 212 | ||
214 | msq->q_perm.id = msg_buildid(ns, id, msq->q_perm.seq); | 213 | msq->q_perm.id = msg_buildid(id, msq->q_perm.seq); |
215 | msq->q_stime = msq->q_rtime = 0; | 214 | msq->q_stime = msq->q_rtime = 0; |
216 | msq->q_ctime = get_seconds(); | 215 | msq->q_ctime = get_seconds(); |
217 | msq->q_cbytes = msq->q_qnum = 0; | 216 | msq->q_cbytes = msq->q_qnum = 0; |