]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eap.c
Use more the ND_TTEST_1() macro
[tcpdump] / print-eap.c
index 30c48616aaa6429221b4eb2e646e0360c2c79e2e..827bf6725b0a185bb6934140af31c89f2e0674c8 100644 (file)
@@ -148,7 +148,7 @@ static const struct tok eap_aka_subtype_values[] = {
  */
 void
 eap_print(netdissect_options *ndo,
-          register const u_char *cp,
+          const u_char *cp,
           u_int length)
 {
     const struct eap_frame_t *eap;
@@ -192,7 +192,7 @@ eap_print(netdissect_options *ndo,
                EXTRACT_U_1((tptr + 1)),
                len));
 
-        ND_TCHECK2(*tptr, len);
+        ND_TCHECK_LEN(tptr, len);
 
         if (type <= 2) { /* For EAP_REQUEST and EAP_RESPONSE only */
             ND_TCHECK_1(tptr + 4);