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".
54 files changed
tree: 2d4881bf0fd7ad4e433201643b5b6a66f17e997c
  1. lbl/
  2. missing/
  3. win32/
  4. .cvsignore
  5. acconfig.h
  6. aclocal.m4
  7. addrtoname.c
  8. addrtoname.h
  9. ah.h
  10. appletalk.h
  11. arcnet.h
  12. atime.awk
  13. atm.h
  14. atmuni31.h
  15. bootp.h
  16. bpf_dump.c
  17. CHANGES
  18. chdlc.h
  19. config.guess
  20. config.h.in
  21. config.sub
  22. configure
  23. configure.in
  24. CREDITS
  25. decnet.h
  26. esp.h
  27. ether.h
  28. ethertype.h
  29. extract.h
  30. fddi.h
  31. FILES
  32. gmt2local.c
  33. gmt2local.h
  34. icmp6.h
  35. ieee802_11.h
  36. igrp.h
  37. INSTALL
  38. install-sh
  39. interface.h
  40. ip.h
  41. ip6.h
  42. ipsec_doi.h
  43. ipx.h
  44. isakmp.h
  45. l2tp.h
  46. lane.h
  47. LICENSE
  48. llc.h
  49. machdep.c
  50. machdep.h
  51. Makefile-devel-adds
  52. Makefile.in
  53. makemib
  54. mib.h
  55. mkdep
  56. nameser.h
  57. netbios.h
  58. nfs.h
  59. nfsfh.h
  60. ntp.h
  61. oakley.h
  62. ospf.h
  63. ospf6.h
  64. packetdat.awk
  65. parsenfsfh.c
  66. PLATFORMS
  67. ppp.h
  68. print-802_11.c
  69. print-ah.c
  70. print-arcnet.c
  71. print-arp.c
  72. print-ascii.c
  73. print-atalk.c
  74. print-atm.c
  75. print-beep.c
  76. print-bgp.c
  77. print-bootp.c
  78. print-cdp.c
  79. print-chdlc.c
  80. print-cip.c
  81. print-cnfp.c
  82. print-decnet.c
  83. print-dhcp6.c
  84. print-domain.c
  85. print-dvmrp.c
  86. print-egp.c
  87. print-esp.c
  88. print-ether.c
  89. print-fddi.c
  90. print-fr.c
  91. print-frag6.c
  92. print-gre.c
  93. print-hsrp.c
  94. print-icmp.c
  95. print-icmp6.c
  96. print-igmp.c
  97. print-igrp.c
  98. print-ip.c
  99. print-ip6.c
  100. print-ip6opts.c
  101. print-ipcomp.c
  102. print-ipx.c
  103. print-isakmp.c
  104. print-isoclns.c
  105. print-krb.c
  106. print-l2tp.c
  107. print-lane.c
  108. print-llc.c
  109. print-lwres.c
  110. print-mobile.c
  111. print-mobility.c
  112. print-mpls.c
  113. print-msdp.c
  114. print-netbios.c
  115. print-nfs.c
  116. print-ntp.c
  117. print-null.c
  118. print-ospf.c
  119. print-ospf6.c
  120. print-pflog.c
  121. print-pim.c
  122. print-ppp.c
  123. print-pppoe.c
  124. print-pptp.c
  125. print-radius.c
  126. print-raw.c
  127. print-rip.c
  128. print-ripng.c
  129. print-rt6.c
  130. print-rx.c
  131. print-sctp.c
  132. print-sl.c
  133. print-sll.c
  134. print-smb.c
  135. print-snmp.c
  136. print-stp.c
  137. print-sunatm.c
  138. print-sunrpc.c
  139. print-tcp.c
  140. print-telnet.c
  141. print-tftp.c
  142. print-timed.c
  143. print-token.c
  144. print-udp.c
  145. print-vjc.c
  146. print-vrrp.c
  147. print-wb.c
  148. print-zephyr.c
  149. README
  150. Readme.Win32
  151. route6d.h
  152. rx.h
  153. sctpConstants.h
  154. sctpHeader.h
  155. send-ack.awk
  156. setsignal.c
  157. setsignal.h
  158. slcompress.h
  159. slip.h
  160. sll.h
  161. smb.h
  162. smbutil.c
  163. stime.awk
  164. strcasecmp.c
  165. tcp.h
  166. tcpdump-stdinc.h
  167. tcpdump.1
  168. tcpdump.c
  169. telnet.h
  170. timed.h
  171. TODO
  172. token.h
  173. udp.h
  174. util.c
  175. VERSION
  176. vfprintf.c