]> The Tcpdump Group git mirrors - tcpdump/blobdiff - util-print.c
CREDITS: add author of a change backported to 4.99.2. [skip ci]
[tcpdump] / util-print.c
index d65f026608a72a5b262d435a6b60b2736eddfdaa..bd39d56aec157c427a506e9fce813a884e19c0da 100644 (file)
@@ -470,7 +470,7 @@ print_unknown_data(netdissect_options *ndo, const u_char *cp,
 /*
  * Convert a token value to a string; use "fmt" if not found.
  */
-const char *
+static const char *
 tok2strbuf(const struct tok *lp, const char *fmt,
           u_int v, char *buf, size_t bufsize)
 {
@@ -616,7 +616,7 @@ uint2tokary_internal(const struct uint_tokary dict[], const size_t size,
 int
 mask2plen(uint32_t mask)
 {
-       uint32_t bitmasks[33] = {
+       const uint32_t bitmasks[33] = {
                0x00000000,
                0x80000000, 0xc0000000, 0xe0000000, 0xf0000000,
                0xf8000000, 0xfc000000, 0xfe000000, 0xff000000,