From 1287f9dfe987f0456e4fb0741385d5f0278ef53b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 14 Feb 2021 17:07:29 +0100 Subject: Message waiting and more! --- libgui/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgui/msg.c') diff --git a/libgui/msg.c b/libgui/msg.c index 6898121..bf3d28c 100644 --- a/libgui/msg.c +++ b/libgui/msg.c @@ -17,7 +17,7 @@ int msg_send(u32 pid, enum message_type type, void *data) int msg_receive(struct message *msg) { int ret = read("/proc/self/msg", msg, 0, sizeof(*msg)); - assert(msg->magic == MSG_MAGIC); + assert(msg->magic == MSG_MAGIC); // TODO: Remove? (Many >0 checks are needed) if (msg->magic == MSG_MAGIC && ret == sizeof(*msg)) return ret; else -- cgit v1.2.3