* corrigé une val de retour
This commit is contained in:
parent
c02267a8e4
commit
d6ecdfb25e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue