diff options
author | guy <guy> | 2002-09-05 21:25:34 +0000 |
---|---|---|
committer | guy <guy> | 2002-09-05 21:25:34 +0000 |
commit | c422d3ab0f6de2d38512a4566637bc47df291e74 (patch) | |
tree | 2d4881bf0fd7ad4e433201643b5b6a66f17e997c /print-timed.c | |
parent | c2bfaa85753ea1cad8c3729692a6bdbb80780f91 (diff) | |
download | tcpdump-c422d3ab0f6de2d38512a4566637bc47df291e74.tar.gz |
Get rid of the "-Wno-unused" flag, and fix up most of the
unused-parameter problems reported by GCC. Add an _U_ tag to label
parameters as unused if the function is called through a pointer (so
that you can't change its signature by removing parameters) or if there
are unused parameters only because the function isn't complete.
Add some additional bounds checks the necessity for which was revealed
while cleaning up unused-parameter problems.
Make some routines static.
"lcp_print()", defined in "print-lcp.c", isn't called anywhere -
"print-ppp.c" has the code to dissect LCP. Get rid of "print-lcp.c".
Diffstat (limited to 'print-timed.c')
-rw-r--r-- | print-timed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-timed.c b/print-timed.c index d6fc3b0f..0396cee9 100644 --- a/print-timed.c +++ b/print-timed.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-timed.c,v 1.5 2002-09-05 00:00:23 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-timed.c,v 1.6 2002-09-05 21:25:50 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -43,7 +43,7 @@ static const char *tsptype[TSPTYPENUMBER] = "TEST", "SETDATE", "SETDATEREQ", "LOOP" }; void -timed_print(register const u_char *bp, u_int length) +timed_print(register const u_char *bp) { #define endof(x) ((u_char *)&(x) + sizeof (x)) struct tsp *tsp = (struct tsp *)bp; |