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

17 lines
297 B
C

#include "libnazgul.h"
#include "ids.h"
int msgSpaceListClose(msgSpaceList * list){
msgSpaceListId spaceListId;
strcpy(spaceListId,DEFAULT_MSGSPACELISTID);
if (munmap(list,sizeof(msgSpaceList)) < 0){
NZG_ERROR("unmap",spaceListId);
goto ERROR;
}
return 0;
ERROR:
return -1;
}