diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-04-17 19:53:00 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-04-17 19:53:00 -0700 |
commit | bef667db65b15c89ec6f1cf325b76acd3c0b8748 (patch) | |
tree | 9c91253177a3c09d95d73cb5696ccea78c65504a /print-ldp.c | |
parent | 845d1aad10d87ada487322ae1df4cad6b71e2d86 (diff) | |
download | tcpdump-bef667db65b15c89ec6f1cf325b76acd3c0b8748.tar.gz |
Clean up types to squelch narrowing warnings.
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/print-ldp.c b/print-ldp.c index 87805d24..653ea37c 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -233,7 +233,7 @@ static int ldp_pdu_print(netdissect_options *, const u_char *); #define TLV_TCHECK(minlen) \ ND_TCHECK_LEN(tptr, minlen); if (tlv_tlen < minlen) goto badtlv; -static int +static u_int ldp_tlv_print(netdissect_options *ndo, const u_char *tptr, u_short msg_tlen) @@ -567,7 +567,8 @@ ldp_pdu_print(netdissect_options *ndo, const struct ldp_msg_header *ldp_msg_header; const u_char *tptr,*msg_tptr; u_short tlen; - u_short pdu_len,msg_len,msg_type,msg_tlen; + u_short pdu_len,msg_len,msg_type; + u_int msg_tlen; int hexdump,processed; ldp_com_header = (const struct ldp_common_header *)pptr; |