From 7c8438747624c4a362b98c9fe052434252cf5090 Mon Sep 17 00:00:00 2001 From: glenux Date: Thu, 19 Feb 2004 23:26:27 +0000 Subject: [PATCH] *** empty log message *** --- src/nzg_spaces.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/nzg_spaces.c b/src/nzg_spaces.c index 95d08f4..1692ba9 100644 --- a/src/nzg_spaces.c +++ b/src/nzg_spaces.c @@ -97,7 +97,7 @@ msgSpace * msgSpaceCreate( strerror( errno ) ); return NULL; } - + /* allocation de la bonne zone mémoire pour le poolData */ if (ftruncate(mSPoolDataFd, poolNb*sizeof(msgPoolData)) == -1){ fprintf( stderr, "msgSpace resizing failed: %s\n", @@ -109,7 +109,7 @@ msgSpace * msgSpaceCreate( * - y écrire les informations passées en param * - creer les zones mémoires de chacune des pool */ - mSPoolDataAddr = mmap( 0, sizeof( *mSAddr ), + mSPoolDataAddr = mmap( 0, sizeof( *mSAddr ), PROT_READ | PROT_WRITE, MAP_SHARED, mSFd, 0 ); if( mSPoolDataAddr == MAP_FAILED ) { @@ -120,7 +120,7 @@ msgSpace * msgSpaceCreate( close(mSPoolDataFd); printf( "msgPoolData map addr is 0x%08x\n", (int)mSPoolDataAddr ); - for (i=0;i