aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2020-09-16 21:38:19 +0200
committerMarvin Borner2020-09-16 21:38:19 +0200
commit11490a493511c4f760af74c12cb7da15b2b404a2 (patch)
tree92837dcface3dbe825a6d6e90cd983e72a62578f /kernel/features/proc.c
parent857c228909603d1a27a40f2714f8b9076fabba6e (diff)
Added *very* basic keymap parsing
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index 3f8dcf1..7544b68 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -83,10 +83,11 @@ struct proc *proc_current()
return current && current->data ? current->data : NULL;
}
-void proc_send(struct proc *src, struct proc *dest, enum message_type type, void *data)
+void proc_send(struct proc *src, struct proc *dest, u32 type, void *data)
{
// TODO: Use unique key instead of pid for IPC messaging
- assert(src && dest);
+ if (!src || !dest)
+ return;
struct proc_message *msg = malloc(sizeof(*msg));
msg->src = src;
msg->dest = dest;