l3.libnazgul/src/spaceClose.c

16 lines
237 B
C
Raw Normal View History

2004-02-26 10:37:42 +00:00
#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;
}