#include "libnazgul.h"
#include "ids.h"
int queueClose(msgQueue * queue){
msgQueueId qId;
strcpy(qId,queue->id);
if (munmap(queue,sizeof(msgQueue)) < 0){
NZG_ERROR("unmap",qId);
goto ERROR;
}
return 0;
ERROR:
return -1;