2004-02-25 18:51:33 +00:00
|
|
|
#include "libnazgul.h"
|
|
|
|
#include "ids.h"
|
|
|
|
|
2020-03-03 23:06:43 +00:00
|
|
|
int msgSpaceListClose(msgSpaceList * list)
|
|
|
|
{
|
2004-02-25 21:28:11 +00:00
|
|
|
|
2020-03-03 23:06:43 +00:00
|
|
|
msgSpaceListId spaceListId;
|
|
|
|
strcpy(spaceListId, DEFAULT_MSGSPACELISTID);
|
2004-02-25 18:51:33 +00:00
|
|
|
|
2020-03-03 23:06:43 +00:00
|
|
|
if (munmap(list, sizeof(msgSpaceList)) < 0) {
|
|
|
|
NZG_ERROR("unmap", spaceListId);
|
|
|
|
goto ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
ERROR:
|
|
|
|
return -1;
|
2004-02-25 18:51:33 +00:00
|
|
|
}
|