diff options
author | Marvin Borner | 2021-02-14 17:07:29 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-14 17:07:29 +0100 |
commit | 1287f9dfe987f0456e4fb0741385d5f0278ef53b (patch) | |
tree | 64d3da484a4d186a725779f20d339432d51f441a /libgui/msg.c | |
parent | bc4e62f629a392e1a4cf204665e91c57f4e619b2 (diff) |
Message waiting and more!
Diffstat (limited to 'libgui/msg.c')
-rw-r--r-- | libgui/msg.c | 2 |
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 |