From 244ffad0bfa5b04b6aa86fea51b420c622738dba Mon Sep 17 00:00:00 2001 From: glenux Date: Mon, 23 Feb 2004 20:37:08 +0000 Subject: [PATCH] *** empty log message *** --- src/queueDelete.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/queueDelete.c b/src/queueDelete.c index e69de29..56b8fbf 100644 --- a/src/queueDelete.c +++ b/src/queueDelete.c @@ -0,0 +1,19 @@ +#include "libnazgul.h" + +int msgQueueElemDelete(msgQueueElemId queueElemId){ + msgQueueElem * queueElemAddr; + msgQueueElemId nextIdToDie; + + queueElemAddr = msgQueueElemOpen(queueElemId); + msgQueueElemClose(queueElem); + if (nextIdToDie != NULL){ + return msgQueueElemDelete(nextIdToDie); + } else { + return 0; + } + +ERROR: + return -1; +} + +