summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Jodeit <moritz@cvs.openbsd.org>2006-05-29 18:05:23 +0000
committerMoritz Jodeit <moritz@cvs.openbsd.org>2006-05-29 18:05:23 +0000
commit407dcc19ca6759aa3052ee762e44d1239a87b442 (patch)
treea327f77885057d5d056b11cfa0e7744b54a86f7f
parentad1bc72e9a16510b3edf46a91bd95405cfe562d2 (diff)
ANSI and whitespace. No binary change.
-rw-r--r--usr.sbin/tcpdump/print-etherip.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.sbin/tcpdump/print-etherip.c b/usr.sbin/tcpdump/print-etherip.c
index fb534c92619..653dbf655bb 100644
--- a/usr.sbin/tcpdump/print-etherip.c
+++ b/usr.sbin/tcpdump/print-etherip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-etherip.c,v 1.2 2003/06/03 00:21:04 jason Exp $ */
+/* $OpenBSD: print-etherip.c,v 1.3 2006/05/29 18:05:22 moritz Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
@@ -32,7 +32,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-etherip.c,v 1.2 2003/06/03 00:21:04 jason Exp $";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-etherip.c,v 1.3 2006/05/29 18:05:22 moritz Exp $";
#endif
#include <sys/param.h>
@@ -63,10 +63,8 @@ static const char rcsid[] =
extern u_short extracted_ethertype;
-void
-etherip_print(bp, len, bp2)
- register const u_char *bp, *bp2;
- register u_int len;
+void
+etherip_print(const u_char *bp, u_int len, const u_char *bp2)
{
const struct ip *ip = (const struct ip *)bp2;
struct ether_header *eh;
@@ -101,7 +99,7 @@ etherip_print(bp, len, bp2)
return;
printf(": ");
-
+
pbuf += hlen;
plen -= hlen;