]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Clean up types to squelch narrowing warnings.
[tcpdump] / print-ldp.c
index 87805d2465437525e6c36155e4fe4d7ec021d84e..653ea37cbd5135018a54480aa67e63ccf0386b78 100644 (file)
@@ -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;