summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
committerbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
commit486b8925ecb0d408e403474828e20c1cce8aaec8 (patch)
treecca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/timer.c
parent1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff)
downloadFreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip
FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz
Cosmetic (no functional changes):
o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/timer.c')
-rw-r--r--usr.sbin/ppp/timer.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c
index c4463c0..cdb17bc 100644
--- a/usr.sbin/ppp/timer.c
+++ b/usr.sbin/ppp/timer.c
@@ -17,20 +17,28 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: timer.c,v 1.20 1997/10/23 21:32:48 ache Exp $
+ * $Id: timer.c,v 1.21 1997/10/24 22:36:31 brian Exp $
*
* TODO:
*/
-#include "defs.h"
-#include <sys/time.h>
+
#include <signal.h>
-#include "timeout.h"
#ifdef SIGALRM
#include <errno.h>
#endif
+#include <sys/time.h>
+#include <unistd.h>
+
+#include "mbuf.h"
+#include "log.h"
+#include "defs.h"
#include "sig.h"
+#include "timer.h"
+
+struct pppTimer *TimerList = NULL;
-void StopTimerNoBlock(struct pppTimer *);
+static void StopTimerNoBlock(struct pppTimer *);
+static void InitTimerService(void);
void
StopTimer(struct pppTimer * tp)
@@ -96,7 +104,7 @@ StartTimer(struct pppTimer * tp)
#endif
}
-void
+static void
StopTimerNoBlock(struct pppTimer * tp)
{
struct pppTimer *t, *pt;
@@ -259,8 +267,8 @@ nointr_usleep(u_int usec)
}
}
-void
-InitTimerService(void)
+static void
+InitTimerService()
{
struct itimerval itimer;
OpenPOWER on IntegriCloud