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

15 lines
237 B
C

#include "libnazgul.h"
int msgSpaceClose(msgSpace * space){
msgSpaceId spaceId;
strcpy(spaceId,space->id);
if (munmap(space,sizeof(msgSpace)) < 0){
NZG_ERROR("unmap",spaceId);
goto ERROR;
}
return 0;
ERROR:
return -1;
}