ca devrait etre bon pour les decla de variables...

This commit is contained in:
stormrider1982 2004-02-23 11:23:11 +00:00
parent 7a95881363
commit e8799963df
3 changed files with 4 additions and 4 deletions

View file

@ -5,6 +5,7 @@ int msgBufferInfoTabInit(msgPoolData * poolDataTabAddr,int poolIndex){
int bufferInfoTabFd;
msgBufferInfo * bufferInfoTabAddr;
int bufferInfoNb;
int i;
//récuperer l'ID du BufferInfoTab;
strcpy(bufferInfoTabId, poolDataTabAddr[poolIndex].bufferInfoTabId);
@ -21,7 +22,6 @@ int bufferInfoNb;
bufferInfoTabAddr=mmap(NULL,bufferInfoNb*sizeof(msgBufferInfo),
PROT_WRITE|PROT_READ,MAP_SHARED,bufferInfoTabFd,(off_t)0);
int i;
for (i=0;i<bufferInfoNb;i++){
bufferInfoTabAddr[i].ownerPid = (pid_t)-1;
}

View file

@ -30,7 +30,7 @@ msgSpace * msgSpaceCreate(
msgPoolData * mSPoolDataAddr;
msgBufferInfoTabId bufferInfoTabId;
msgPoolId poolId;
sem_t * mSDataTabSemFd;
sem_t * mSDataTabSemFd;
mSIdNum++;
mSAddr=NULL;

View file

@ -10,6 +10,7 @@ int msgSpaceDelete(msgSpaceId externId){
//int shmId;
msgSpaceId nzgId;
msgSpace * space;
int i;
if (msgSpaceIdIntern(nzgId,externId) == -1){
//TODO: message d'erreur
return -1;
@ -17,7 +18,6 @@ int msgSpaceDelete(msgSpaceId externId){
space = msgSpaceOpen(externId);
/* TODO: supprimer chaque pool */
int i;
for (i=0;i<space->poolNb;i++){
msgPoolDelete(externId,i);
}