]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-eap.c
EIGRP: Modernize packet parsing style.
[tcpdump] / print-eap.c
index 82d6084ad092c0ae5488961b3f43c9c23ca35700..b0542ad94b59ac8c2ebc5665f268c141877ea464 100644 (file)
@@ -178,14 +178,14 @@ eap_print(netdissect_options *ndo,
             case EAP_TYPE_IDENTITY:
                 if (len - 5 > 0) {
                     ND_PRINT(", Identity: ");
-                    (void)nd_printzp(ndo, cp + 5, len - 5, NULL);
+                    nd_printjnp(ndo, cp + 5, len - 5);
                 }
                 break;
 
             case EAP_TYPE_NOTIFICATION:
                 if (len - 5 > 0) {
                     ND_PRINT(", Notification: ");
-                    (void)nd_printzp(ndo, cp + 5, len - 5, NULL);
+                    nd_printjnp(ndo, cp + 5, len - 5);
                 }
                 break;
 
@@ -254,7 +254,6 @@ eap_print(netdissect_options *ndo,
     return;
 trunc:
     nd_print_trunc(ndo);
-    return;
 }
 
 void