16 lines
257 B
C
16 lines
257 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;
|
||
|
}
|