From f6327bfa2e592c3acca4eb35658a594e61ad8f65 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 11 Jul 2002 22:21:16 +0000 Subject: [PATCH] ERR -> E Change header includes if reqd. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@104 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/queue.c | 12 ++++++------ src/kernel/core/smp.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/kernel/core/queue.c b/src/kernel/core/queue.c index 66b9c8ae7a..d8e9a52760 100644 --- a/src/kernel/core/queue.c +++ b/src/kernel/core/queue.c @@ -7,7 +7,7 @@ #include #include #include -#include +#include typedef struct queue_element { void *next; @@ -96,17 +96,17 @@ void *queue_peek(queue *q) int fixed_queue_init(fixed_queue *q, int size) { if(size <= 0) - return ERR_INVALID_ARGS; + return EINVAL; q->table = kmalloc(size * sizeof(void *)); if(!q->table) - return ERR_NO_MEMORY; + return ENOMEM; q->head = 0; q->tail = 0; q->count = 0; q->size = size; - return B_NO_ERROR; + return 0; } void fixed_queue_destroy(fixed_queue *q) @@ -118,13 +118,13 @@ void fixed_queue_destroy(fixed_queue *q) int fixed_queue_enqueue(fixed_queue *q, void *e) { if(q->count == q->size) - return ERR_NO_MEMORY; + return ENOMEM; q->table[q->head++] = e; if(q->head >= q->size) q->head = 0; q->count++; - return B_NO_ERROR; + return 0; } void *fixed_queue_dequeue(fixed_queue *q) diff --git a/src/kernel/core/smp.c b/src/kernel/core/smp.c index bf8ca150be..53df25acd5 100644 --- a/src/kernel/core/smp.c +++ b/src/kernel/core/smp.c @@ -455,7 +455,7 @@ int smp_init(kernel_args *ka) msg = (struct smp_msg *)kmalloc(sizeof(struct smp_msg)); if(msg == NULL) { panic("error creating smp mailboxes\n"); - return ERR_GENERAL; + return B_ERROR; } memset(msg, 0, sizeof(struct smp_msg)); msg->next = free_msgs;