aboutsummaryrefslogtreecommitdiff
path: root/libgui/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgui/msg.c')
-rw-r--r--libgui/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgui/msg.c b/libgui/msg.c
index 677ad52..5f4ae39 100644
--- a/libgui/msg.c
+++ b/libgui/msg.c
@@ -6,7 +6,7 @@
#include <print.h>
#include <sys.h>
-int msg_send(u32 pid, enum message_type type, void *data, u32 size)
+res msg_send(u32 pid, enum message_type type, void *data, u32 size)
{
if (!data)
return -EFAULT;
@@ -20,7 +20,7 @@ int msg_send(u32 pid, enum message_type type, void *data, u32 size)
return write(path, data, 0, size);
}
-int msg_receive(void *buf, u32 size)
+res msg_receive(void *buf, u32 size)
{
int ret = read("/proc/self/msg", buf, 0, size);
struct message_header *header = buf;