From 8449595fe97f4474b9b9a7e4edee1ef35dcff393 Mon Sep 17 00:00:00 2001 From: gshapiro Date: Sun, 17 Feb 2002 21:56:45 +0000 Subject: Import sendmail 8.12.2 --- contrib/sendmail/src/shmticklib.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'contrib/sendmail/src/shmticklib.c') 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_RCSID("@(#)$Id: shmticklib.c,v 8.14 2001/09/11 04:05:16 gshapiro Exp $") #if _FFR_SHM_STATUS -# if SFIO -# include -# else /* !SFIO */ -# include -# endif /* SFIO */ # include # include # include # 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) -- cgit v1.1