summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/log.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-22 03:37:54 +0000
committerbrian <brian@FreeBSD.org>1997-11-22 03:37:54 +0000
commita7f001c816c9390acda1c72f889fd110f8d75563 (patch)
tree876d508224fb0bc9435a2e3b83f73719b56ad0b6 /usr.sbin/ppp/log.c
parent13d351d26116b6bf544f619e0de396a53d47ccd1 (diff)
downloadFreeBSD-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/log.c')
-rw-r--r--usr.sbin/ppp/log.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c
index 4afa158..7bbd589 100644
--- a/usr.sbin/ppp/log.c
+++ b/usr.sbin/ppp/log.c
@@ -1,5 +1,5 @@
/*
- * $Id: log.c,v 1.20 1997/11/09 14:18:41 brian Exp $
+ * $Id: log.c,v 1.21 1997/11/11 12:26:34 brian Exp $
*/
#include <sys/param.h>
@@ -10,14 +10,14 @@
#include <stdio.h>
#include <syslog.h>
+#include "command.h"
#include "mbuf.h"
#include "log.h"
#include "loadalias.h"
-#include "command.h"
#include "defs.h"
#include "vars.h"
-static char *LogNames[] = {
+static const char *LogNames[] = {
"Async",
"Carrier",
"CCP",
@@ -138,7 +138,7 @@ LogClose()
}
void
-LogPrintf(int lev, char *fmt,...)
+LogPrintf(int lev, const char *fmt,...)
{
va_list ap;
@@ -169,7 +169,7 @@ LogPrintf(int lev, char *fmt,...)
}
void
-LogDumpBp(int lev, char *hdr, struct mbuf * bp)
+LogDumpBp(int lev, const char *hdr, const struct mbuf * bp)
{
if (LogIsKept(lev)) {
char buf[50];
@@ -203,7 +203,7 @@ LogDumpBp(int lev, char *hdr, struct mbuf * bp)
}
void
-LogDumpBuff(int lev, char *hdr, u_char * ptr, int n)
+LogDumpBuff(int lev, const char *hdr, const u_char * ptr, int n)
{
if (LogIsKept(lev)) {
char buf[50];
OpenPOWER on IntegriCloud