]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-zephyr.c
CALM FAST: Modernize packet parsing style.
[tcpdump] / print-zephyr.c
index 76351bd3b68ec19de639b10d5498a3ce91f68c99..8d199b56bdee0f2a9588acdeba85cdaac7b221c2 100644 (file)
@@ -32,6 +32,8 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include "netdissect-ctype.h"
+
 #include "netdissect.h"
 
 struct z_packet {
@@ -134,7 +136,7 @@ str_to_lower(const char *string)
 
     zb_string = z_buf;
     while (*zb_string) {
-       *zb_string = ND_TOLOWER((unsigned char)(*zb_string));
+       *zb_string = ND_ASCII_TOLOWER(*zb_string);
        zb_string++;
     }
 
@@ -344,5 +346,4 @@ zephyr_print(netdissect_options *ndo, const u_char *cp, int length)
 
 trunc:
     nd_print_trunc(ndo);
-    return;
 }