]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch a narrowing warning.
authorGuy Harris <[email protected]>
Tue, 11 Dec 2018 09:15:12 +0000 (01:15 -0800)
committerGuy Harris <[email protected]>
Tue, 11 Dec 2018 09:15:12 +0000 (01:15 -0800)
Use a u_char variable for characters in the RST string; no need for it
to be an int.

print-tcp.c

index ef7bcf6c4dbf5dccb587a08100f24ecac0c540fd..1b8fb4c4873daafde7d5a55c68cde47049afa26f 100644 (file)
@@ -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) {