X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSharedMem.c;h=16cae770d9c4dc8afddf2bb4b58a97eaa51f7cc1;hp=d4a9b9d7d9d28384f27bbd130552fb7454e3f453;hb=HEAD;hpb=de83478a4dec2c8dd1b3721c4548b8d902555566 diff --git a/sources/SharedMem.c b/sources/SharedMem.c index d4a9b9d..16cae77 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 -#include /* standard I/O functions */ -#include -#include /* signal handling declarations */ -#include +#include /* SysV shared memory */ +#include /* primitive system data types */ +#include /* file characteristics constants and functions */ +#include /* standard I/O library */ +#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); }