l3.libnazgul/src/queueClose.c

17 lines
246 B
C
Raw Normal View History

2004-02-23 20:31:00 +00:00
#include "libnazgul.h"
#include "ids.h"
2019-09-17 12:49:28 +00:00
int msgQueueClose(msgQueue * queue){
2004-02-23 20:31:00 +00:00
msgQueueId qId;
strcpy(qId,queue->id);
if (munmap(queue,sizeof(msgQueue)) < 0){
NZG_ERROR("unmap",qId);
goto ERROR;
}
return 0;
ERROR:
return -1;
}