summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/shmticklib.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2002-02-17 21:56:45 +0000
committergshapiro <gshapiro@FreeBSD.org>2002-02-17 21:56:45 +0000
commit8449595fe97f4474b9b9a7e4edee1ef35dcff393 (patch)
treee7a33b132264d449a512ddf4a8685df097669c1d /contrib/sendmail/src/shmticklib.c
parent289b381b31415647269c7520d881017e2dcb27f1 (diff)
downloadFreeBSD-src-8449595fe97f4474b9b9a7e4edee1ef35dcff393.zip
FreeBSD-src-8449595fe97f4474b9b9a7e4edee1ef35dcff393.tar.gz
Import sendmail 8.12.2
Diffstat (limited to 'contrib/sendmail/src/shmticklib.c')
-rw-r--r--contrib/sendmail/src/shmticklib.c18
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)
OpenPOWER on IntegriCloud