summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/clock.c
diff options
context:
space:
mode:
authorgshapiro <gshapiro@FreeBSD.org>2005-02-14 02:30:00 +0000
committergshapiro <gshapiro@FreeBSD.org>2005-02-14 02:30:00 +0000
commit9883351c45502bc6aec878ba11d8ef5fe1843397 (patch)
treed9cfa9f19110fa167a0fec9f07c6fcfacd77aafb /contrib/sendmail/libsm/clock.c
parent1fc446a819a244515d9461fa50d34ee191414d6f (diff)
downloadFreeBSD-src-9883351c45502bc6aec878ba11d8ef5fe1843397.zip
FreeBSD-src-9883351c45502bc6aec878ba11d8ef5fe1843397.tar.gz
Import sendmail 8.13.3
Diffstat (limited to 'contrib/sendmail/libsm/clock.c')
-rw-r--r--contrib/sendmail/libsm/clock.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/sendmail/libsm/clock.c b/contrib/sendmail/libsm/clock.c
index 5805554..c09b2d1 100644
--- a/contrib/sendmail/libsm/clock.c
+++ b/contrib/sendmail/libsm/clock.c
@@ -12,7 +12,7 @@
*/
#include <sm/gen.h>
-SM_RCSID("@(#)$Id: clock.c,v 1.45 2004/01/19 19:32:08 ca Exp $")
+SM_RCSID("@(#)$Id: clock.c,v 1.46 2004/08/03 19:57:22 ca Exp $")
#include <unistd.h>
#include <time.h>
#include <errno.h>
@@ -63,7 +63,7 @@ static SM_EVENT *volatile SmFreeEventList; /* list of free events */
SM_EVENT *
sm_seteventm(intvl, func, arg)
int intvl;
- void (*func)();
+ void (*func)__P((int));
int arg;
{
ENTER_CRITICAL();
@@ -86,7 +86,7 @@ sm_seteventm(intvl, func, arg)
SM_EVENT *
sm_sigsafe_seteventm(intvl, func, arg)
int intvl;
- void (*func)();
+ void (*func)__P((int));
int arg;
{
register SM_EVENT **evp;
@@ -394,7 +394,7 @@ sm_tick(sig)
#endif /* SM_CONF_SETITIMER */
))
{
- void (*f)();
+ void (*f)__P((int));
int arg;
pid_t pid;
@@ -497,7 +497,7 @@ sm_tick(sig)
# if !HAVE_NANOSLEEP
-static void sm_endsleep __P((void));
+static void sm_endsleep __P((int));
static bool volatile SmSleepDone;
# endif /* !HAVE_NANOSLEEP */
@@ -625,7 +625,8 @@ sleep(intvl)
#if !HAVE_NANOSLEEP
static void
-sm_endsleep()
+sm_endsleep(ignore)
+ int ignore;
{
/*
** NOTE: THIS CAN BE CALLED FROM A SIGNAL HANDLER. DO NOT ADD
OpenPOWER on IntegriCloud