summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ppp.c
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2000-10-03 14:21:56 +0000
committerho <ho@openbsd.org>2000-10-03 14:21:56 +0000
commit9da4fe85683b8cef9158e4366a37df9d9659e34a (patch)
tree6605576c35abd6aee39ffe33e2551098151dcb47 /usr.sbin/tcpdump/print-ppp.c
parentMore careful ntohs/ntohl etc. From Gunnar Lindberg <lindberg@cdg.chalmers.se> (diff)
downloadwireguard-openbsd-9da4fe85683b8cef9158e4366a37df9d9659e34a.tar.xz
wireguard-openbsd-9da4fe85683b8cef9158e4366a37df9d9659e34a.zip
Compile with -Wall. Add $OpenBSD$. (jakob@ ok)
Diffstat (limited to 'usr.sbin/tcpdump/print-ppp.c')
-rw-r--r--usr.sbin/tcpdump/print-ppp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/tcpdump/print-ppp.c b/usr.sbin/tcpdump/print-ppp.c
index 051801f4bdf..4faeeae72df 100644
--- a/usr.sbin/tcpdump/print-ppp.c
+++ b/usr.sbin/tcpdump/print-ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ppp.c,v 1.12 2000/07/31 05:11:09 jason Exp $ */
+/* $OpenBSD: print-ppp.c,v 1.13 2000/10/03 14:21:56 ho Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
@@ -23,7 +23,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ppp.c,v 1.12 2000/07/31 05:11:09 jason Exp $ (LBL)";
+ "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-ppp.c,v 1.13 2000/10/03 14:21:56 ho Exp $ (LBL)";
#endif
#ifdef PPP
@@ -207,11 +207,11 @@ static char *papcode[] = {
#define IPCP_CP 2
#define IPCP_ADDR 3
-static int handle_lcp(const u_char *p, int length);
static int print_lcp_config_options(u_char *p);
-static int handle_chap(const u_char *p, int length);
-static int handle_ipcp(const u_char *p, int length);
-static int handle_pap(const u_char *p, int length);
+static void handle_lcp(const u_char *p, int length);
+static void handle_chap(const u_char *p, int length);
+static void handle_ipcp(const u_char *p, int length);
+static void handle_pap(const u_char *p, int length);
struct pppoe_header {
u_int8_t vertype; /* PPPoE version/type */
@@ -274,7 +274,7 @@ ppp_hdlc_print(p, length)
/* print LCP frame */
-static int
+static void
handle_lcp(p, length)
const u_char *p;
int length;
@@ -394,7 +394,7 @@ print_lcp_config_options(p)
/* CHAP */
-static int
+static void
handle_chap(p, length)
const u_char *p;
int length;
@@ -431,7 +431,7 @@ handle_chap(p, length)
/* PAP */
-static int
+static void
handle_pap(p, length)
const u_char *p;
int length;
@@ -470,7 +470,7 @@ handle_pap(p, length)
/* IPCP */
-static int
+static void
handle_ipcp(p, length)
const u_char *p;
int length;