l3.libnazgul/src/queueClose.c
2020-03-03 23:46:32 +01:00

16 lines
246 B
C

#include "libnazgul.h"
#include "ids.h"
int msgQueueClose(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;
}