diff --git a/kernel/event_queue.c b/kernel/event_queue.c index 22077a6..4cdf82c 100644 --- a/kernel/event_queue.c +++ b/kernel/event_queue.c @@ -1,3 +1,8 @@ +/* + Event queues supporting process blocking + + Version: 1.0.2 +*/ #include "event_queue.h" #include "interrupt.h" #include "process.h" @@ -24,8 +29,8 @@ struct event_queue * event_queue_create_root() struct event_queue * event_queue_create() { - struct event_queue *q = kmalloc(sizeof(*q)); - memset(q,0,sizeof(*q)); + struct event_queue *q = kmalloc(sizeof(struct event_queue)); + memset(q,0,sizeof(struct event_queue)); return q; }