diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-11 11:52:30 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-11 11:52:30 -0800 |
commit | 64677b0d78ff168d98c3035e894c4910c021136e (patch) | |
tree | cc8e70d60eb94840ed27b65275619ecc441d9714 /print-hncp.c | |
parent | 6c964291f360ff03c7947693957e51e880d34ee7 (diff) | |
download | tcpdump-64677b0d78ff168d98c3035e894c4910c021136e.tar.gz |
Clean up signed vs. unsigned.
Diffstat (limited to 'print-hncp.c')
-rw-r--r-- | print-hncp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-hncp.c b/print-hncp.c index 3a56538b..2f43e93d 100644 --- a/print-hncp.c +++ b/print-hncp.c @@ -49,7 +49,7 @@ void hncp_print(netdissect_options *ndo, const u_char *cp, u_int length) { - ND_PRINT("hncp (%d)", length); + ND_PRINT("hncp (%u)", length); hncp_print_rec(ndo, cp, length, 1); } @@ -226,7 +226,7 @@ print_prefix(netdissect_options *ndo, const u_char *prefix, u_int max_length) ((u_char *)&addr)[plenbytes - 1] &= ((0xff00 >> (plen % 8)) & 0xff); } - snprintf(buf, sizeof(buf), "%s/%d", ipaddr_string(ndo, &addr), plen); + snprintf(buf, sizeof(buf), "%s/%u", ipaddr_string(ndo, &addr), plen); plenbytes += 1 + IPV4_MAPPED_HEADING_LEN; } else { plenbytes = decode_prefix6(ndo, prefix, max_length, buf, sizeof(buf)); |