aboutsummaryrefslogtreecommitdiff
path: root/libgui/msg.c
diff options
context:
space:
mode:
authorMarvin Borner2021-02-14 17:07:29 +0100
committerMarvin Borner2021-02-14 17:07:29 +0100
commit1287f9dfe987f0456e4fb0741385d5f0278ef53b (patch)
tree64d3da484a4d186a725779f20d339432d51f441a /libgui/msg.c
parentbc4e62f629a392e1a4cf204665e91c57f4e619b2 (diff)
Message waiting and more!
Diffstat (limited to 'libgui/msg.c')
-rw-r--r--libgui/msg.c2
1 files changed, 1 insertions, 1 deletions
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