From c422d3ab0f6de2d38512a4566637bc47df291e74 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 5 Sep 2002 21:25:34 +0000 Subject: 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". --- print-pppoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'print-pppoe.c') diff --git a/print-pppoe.c b/print-pppoe.c index 6abe6004..3456225b 100644 --- a/print-pppoe.c +++ b/print-pppoe.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = -"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.17 2002-08-01 08:53:24 risso Exp $ (LBL)"; +"@(#) $Header: /tcpdump/master/tcpdump/print-pppoe.c,v 1.18 2002-09-05 21:25:45 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -90,7 +90,7 @@ static struct tok pppoetag2str[] = { #define PPPOE_HDRLEN 6 void -pppoe_if_print(u_char *user, const struct pcap_pkthdr *h, +pppoe_if_print(u_char *user _U_, const struct pcap_pkthdr *h, register const u_char *p) { register u_int length = h->len; -- cgit v1.2.1