summaryrefslogtreecommitdiff
path: root/print-calm-fast.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-01-11 11:52:30 -0800
committerGuy Harris <guy@alum.mit.edu>2018-01-11 11:52:30 -0800
commit64677b0d78ff168d98c3035e894c4910c021136e (patch)
treecc8e70d60eb94840ed27b65275619ecc441d9714 /print-calm-fast.c
parent6c964291f360ff03c7947693957e51e880d34ee7 (diff)
downloadtcpdump-64677b0d78ff168d98c3035e894c4910c021136e.tar.gz
Clean up signed vs. unsigned.
Diffstat (limited to 'print-calm-fast.c')
-rw-r--r--print-calm-fast.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print-calm-fast.c b/print-calm-fast.c
index 7198f27f..4fce44ed 100644
--- a/print-calm-fast.c
+++ b/print-calm-fast.c
@@ -40,8 +40,8 @@
void
calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const struct lladdr_info *src)
{
- int srcNwref;
- int dstNwref;
+ u_int srcNwref;
+ u_int dstNwref;
ND_TCHECK_2(bp);
if (length < 2)
@@ -55,8 +55,8 @@ calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const s
if (src != NULL)
ND_PRINT(" src:%s", (src->addr_string)(ndo, src->addr));
ND_PRINT("; ");
- ND_PRINT("SrcNwref:%d; ", srcNwref);
- ND_PRINT("DstNwref:%d; ", dstNwref);
+ ND_PRINT("SrcNwref:%u; ", srcNwref);
+ ND_PRINT("DstNwref:%u; ", dstNwref);
if (ndo->ndo_vflag)
ND_DEFAULTPRINT(bp, length);