17 lines
255 B
C
17 lines
255 B
C
#include "libnazgul.h"
|
|
|
|
int msgQueueElemClose(msgQueueElem * queueElem)
|
|
{
|
|
msgQueueElemId qId;
|
|
strcpy(qId, queueElem->id);
|
|
|
|
if (munmap(queueElem, sizeof(msgQueueElem)) < 0) {
|
|
NZG_ERROR("unmap", qId);
|
|
goto ERROR;
|
|
}
|
|
|
|
return 0;
|
|
ERROR:
|
|
return -1;
|
|
}
|