]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-mobility.c
Fix some "unsigned int" vs. "size_t" issues (they're not necessarily the
[tcpdump] / print-mobility.c
index 8311a03ac1199ee344b1fbdd4a1f3605f01c0b32..1490b72e721cf2f62515c0dc13ba450e16ef6c28 100644 (file)
 #include "config.h"
 #endif
 
+#ifndef lint
+static const char rcsid[] _U_ =
+     "@(#) $Header: /tcpdump/master/tcpdump/print-mobility.c,v 1.12 2005-04-20 22:21:00 guy Exp $";
+#endif
 
 #ifdef INET6
 #include <tcpdump-stdinc.h>
 #include "addrtoname.h"
 #include "extract.h"           /* must come after interface.h */
 
-#ifndef lint
-static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-mobility.c,v 1.10 2003-11-15 00:39:31 guy Exp $";
-#endif
 /* Mobility header */
 struct ip6_mobility {
        u_int8_t ip6m_pproto;   /* following payload protocol (for PG) */
@@ -168,15 +168,13 @@ trunc:
  * Mobility Header
  */
 int
-mobility_print(const u_char *bp, const u_char *bp2)
+mobility_print(const u_char *bp, const u_char *bp2 _U_)
 {
        const struct ip6_mobility *mh;
-       const struct ip6_hdr *ip6;
        const u_char *ep;
        int mhlen, hlen, type;
 
        mh = (struct ip6_mobility *)bp;
-       ip6 = (struct ip6_hdr *)bp2;
 
        /* 'ep' points to the end of available data. */
        ep = snapend;