X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sources%2FSharedMem.c;h=63282d08a006534d8bd929e6d2f6b4c63c9c8174;hb=31f55ec58bee8b2c4993633849b7da4e30cab222;hp=d4a9b9d7d9d28384f27bbd130552fb7454e3f453;hpb=de83478a4dec2c8dd1b3721c4548b8d902555566;p=gapil.git diff --git a/sources/SharedMem.c b/sources/SharedMem.c index d4a9b9d..63282d0 100644 --- a/sources/SharedMem.c +++ b/sources/SharedMem.c @@ -26,19 +26,17 @@ * * Author: S. Piccardi * - * $Id: SharedMem.c,v 1.5 2003/02/26 21:37:36 piccardi Exp $ - * ***************************************************************/ -#include /* SysV IPC shared memory declarations */ -#include +#include /* SysV IPC shared memory */ +#include /* primitive system data types */ #include -#include /* standard I/O functions */ -#include -#include /* signal handling declarations */ -#include +#include /* standard I/O functions */ +#include /* file control functions */ +#include /* signal constants, types and functions */ +#include /* unix standard library */ #include -#include -#include +#include /* C strings library */ +#include /* error definitions and routines */ #include "macros.h" /* ************************************************************************* @@ -199,6 +197,5 @@ void * FindShm(char * shm_name, off_t shm_size) */ int RemoveShm(char * shm_name) { - shm_unlink(shm_name); - return 0; + return shm_unlink(shm_name); }