diff options
Diffstat (limited to 'contrib/sendmail/src/shmticklib.c')
-rw-r--r-- | contrib/sendmail/src/shmticklib.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/contrib/sendmail/src/shmticklib.c b/contrib/sendmail/src/shmticklib.c index a3e1ad5..6f5e301 100644 --- a/contrib/sendmail/src/shmticklib.c +++ b/contrib/sendmail/src/shmticklib.c @@ -10,23 +10,17 @@ * */ -#ifndef lint -static char id[] = "@(#)$Id: shmticklib.c,v 8.6 2000/02/26 01:32:27 gshapiro Exp $"; -#endif /* ! lint */ +#include <sm/gen.h> +SM_RCSID("@(#)$Id: shmticklib.c,v 8.14 2001/09/11 04:05:16 gshapiro Exp $") #if _FFR_SHM_STATUS -# if SFIO -# include <sfio/stdio.h> -# else /* !SFIO */ -# include <stdio.h> -# endif /* SFIO */ # include <sys/types.h> # include <sys/ipc.h> # include <sys/shm.h> # include "statusd_shm.h" -/* +/* ** SHMTICK -- increment a shared memory variable ** ** Parameters: @@ -54,10 +48,10 @@ shmtick(inc_me, what) if (shmid < 0) return; } - if ((unsigned long *)sp == (unsigned long *)-1) + if ((unsigned long *) sp == (unsigned long *)-1) { - sp = (STATUSD_SHM *)shmat(shmid, NULL, 0); - if ((unsigned long *)sp == (unsigned long *)-1) + sp = (STATUSD_SHM *) shmat(shmid, NULL, 0); + if ((unsigned long *) sp == (unsigned long *) -1) return; } if (sp->magic != STATUSD_MAGIC) |