From 8de2c8a6a523cc4c029f5f170c2f5abeac67d10c Mon Sep 17 00:00:00 2001 From: stormrider1982 Date: Mon, 23 Feb 2004 11:23:11 +0000 Subject: [PATCH] ca devrait etre bon pour les decla de variables... --- src/nzg_bufferInfoTabInit.c | 4 ++-- src/nzg_spaceCreate.c | 2 +- src/nzg_spaceDelete.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nzg_bufferInfoTabInit.c b/src/nzg_bufferInfoTabInit.c index 12d9f6c..2670679 100644 --- a/src/nzg_bufferInfoTabInit.c +++ b/src/nzg_bufferInfoTabInit.c @@ -4,7 +4,8 @@ int msgBufferInfoTabInit(msgPoolData * poolDataTabAddr,int poolIndex){ msgBufferInfoTabId bufferInfoTabId; int bufferInfoTabFd; msgBufferInfo * bufferInfoTabAddr; -int bufferInfoNb; +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;ipoolNb;i++){ msgPoolDelete(externId,i); }