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

13 lines
273 B
C

#include "libnazgul.h"
int msgPoolDataTabClose(msgSpace * space,void * addr){
/* unmapper le msgPoolDataTab */
if (munmap(addr,(space->poolNb) * sizeof( msgPoolData )) < 0){
NZG_ERROR("unmap",space->poolDataTabId);
goto ERROR;
}
return 0;
ERROR:
return -1;
}