l3.libnazgul/src/spaceListClose.c

19 lines
296 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;
}