diff options
author | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
commit | a7f001c816c9390acda1c72f889fd110f8d75563 (patch) | |
tree | 876d508224fb0bc9435a2e3b83f73719b56ad0b6 /usr.sbin/ppp/lqr.c | |
parent | 13d351d26116b6bf544f619e0de396a53d47ccd1 (diff) | |
download | FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.zip FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.tar.gz |
Fix prototypes.
Remove extraneous decls.
Add ``const'' to several places.
Allow ``make NOALIAS=1'' to remove IP aliasing.
Merge with OpenBSD - only the Makefiles vary.
We can now survive a compile with
-Wall -Wbad-function-cast -Wcast-align -Wcast-qual
-Winline -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts
(although the Makefile just contains -Wall).
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r-- | usr.sbin/ppp/lqr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c index fa60c5d..bf1bf5d 100644 --- a/usr.sbin/ppp/lqr.c +++ b/usr.sbin/ppp/lqr.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lqr.c,v 1.18 1997/08/31 22:59:35 brian Exp $ + * $Id: lqr.c,v 1.19 1997/10/26 01:03:08 brian Exp $ * * o LQR based on RFC1333 * @@ -30,6 +30,7 @@ #include <stdio.h> +#include "command.h" #include "mbuf.h" #include "log.h" #include "defs.h" @@ -40,7 +41,6 @@ #include "hdlc.h" #include "lcp.h" #include "loadalias.h" -#include "command.h" #include "vars.h" #include "main.h" @@ -62,7 +62,7 @@ struct echolqr { #define SIGNATURE 0x594e4f54 static void -SendEchoReq() +SendEchoReq(void) { struct fsm *fp = &LcpFsm; struct echolqr *lqr, lqrdata; @@ -107,7 +107,7 @@ LqrChangeOrder(struct lqrdata * src, struct lqrdata * dst) } static void -SendLqrReport() +SendLqrReport(void *v) { struct mbuf *bp; @@ -182,7 +182,7 @@ LqrInput(struct mbuf * bp) */ if (LqrTimer.load == 0 || lastpeerin == HisLqrData.PeerInLQRs) { lqmmethod |= LQM_LQR; - SendLqrReport(); + SendLqrReport(0); } lastpeerin = HisLqrData.PeerInLQRs; } @@ -218,7 +218,7 @@ StartLqm() LqrTimer.state = TIMER_STOPPED; LqrTimer.load = period * SECTICKS / 100; LqrTimer.func = SendLqrReport; - SendLqrReport(); + SendLqrReport(0); StartTimer(&LqrTimer); LogPrintf(LogLQM, "Will send LQR every %d.%d secs\n", period / 100, period % 100); @@ -244,13 +244,13 @@ StopLqr(int method) LogPrintf(LogLQM, "Stop sending LCP ECHO.\n"); lqmmethod &= ~method; if (lqmmethod) - SendLqrReport(); + SendLqrReport(0); else StopTimer(&LqrTimer); } void -LqrDump(char *message, struct lqrdata * lqr) +LqrDump(const char *message, const struct lqrdata * lqr) { if (LogIsKept(LogLQM)) { LogPrintf(LogLQM, "%s:\n", message); |