From: Guy Harris Date: Tue, 11 Dec 2018 09:15:12 +0000 (-0800) Subject: Squelch a narrowing warning. X-Git-Tag: tcpdump-4.99-bp~948 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e6fc07a5162a3b2f64aa3fcb274e142399c5e36b Squelch a narrowing warning. Use a u_char variable for characters in the RST string; no need for it to be an int. --- diff --git a/print-tcp.c b/print-tcp.c index ef7bcf6c..1b8fb4c4 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -820,7 +820,7 @@ static void print_tcp_rst_data(netdissect_options *ndo, const u_char *sp, u_int length) { - int c; + u_char c; ND_PRINT(ND_TTEST_LEN(sp, length) ? " [RST" : " [!RST"); if (length > MAX_RST_DATA_LEN) {