* corrigé une val de retour

This commit is contained in:
glenux 2004-02-19 19:15:19 +00:00
parent c02267a8e4
commit d6ecdfb25e

View file

@ -52,7 +52,7 @@ msgSpace * msgSpaceCreate(
mSAddr = mmap( 0, sizeof( *mSAddr ), mSAddr = mmap( 0, sizeof( *mSAddr ),
PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE,
MAP_SHARED, mSFd, 0 ); MAP_SHARED, mSFd, 0 );
if( mSAddr == NULL ) { if( mSAddr == MAP_FAILED ) {
fprintf( stderr, "mmap failed: %s\n", fprintf( stderr, "mmap failed: %s\n",
strerror( errno ) ); strerror( errno ) );
return NULL; return NULL;