l3.libnazgul/src/spaceListClose.c

18 lines
297 B
C
Raw Normal View History

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