summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-04-26 14:28:16 -0700
committerGuy Harris <guy@alum.mit.edu>2019-04-26 14:28:16 -0700
commit72da02943f6d9c2c030f5266ca4547cbc28165f7 (patch)
treea541dff4986b2358d720fe7c3c6770b96c414119 /print-ldp.c
parent45a4d4292cf103bf13165441663c5800da1f01fa (diff)
downloadtcpdump-72da02943f6d9c2c030f5266ca4547cbc28165f7.tar.gz
Squelch a compiler warning.
All hail the integer promotions, which stick signedness into the middle of otherwise-unsigned expressions!
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-ldp.c b/print-ldp.c
index 19e87b7f..680a7e1e 100644
--- a/print-ldp.c
+++ b/print-ldp.c
@@ -253,7 +253,7 @@ ldp_tlv_print(netdissect_options *ndo,
ldp_tlv_header = (const struct ldp_tlv_header *)tptr;
ND_TCHECK_SIZE(ldp_tlv_header);
tlv_len=GET_BE_U_2(ldp_tlv_header->length);
- if (tlv_len + 4 > msg_tlen) {
+ if (tlv_len + 4U > msg_tlen) {
ND_PRINT("\n\t\t TLV contents go past end of message");
return 0;
}