]> The Tcpdump Group git mirrors - tcpdump/commit
ICMP: Make a few cppcheck-inspired fixups.
authorDenis Ovsienko <[email protected]>
Fri, 15 Sep 2017 16:12:34 +0000 (17:12 +0100)
committerDenis Ovsienko <[email protected]>
Fri, 15 Sep 2017 16:12:34 +0000 (17:12 +0100)
commit7ea6b55ab42e1a1b5cd09367f4d1bf2078c93a5d
tree35d25099051b6f03c34939ee2cfa9de0483e2ee9
parent34367df6ab1f9a8bb16c31aa83b932ac34dae6d5
ICMP: Make a few cppcheck-inspired fixups.

[print-icmp.c:402]: (warning) %d in format string (no. 2) requires 'int'
but the argument type is 'unsigned int'.
[print-icmp.c:560]: (style) The scope of the variable 'sum' can be
reduced.
[print-icmp.c:560]: (style) The scope of the variable 'icmp_sum' can be
reduced.
[print-icmp.c:509]: (warning) %d in format string (no. 1) requires 'int'
but the argument type is 'unsigned int'.
[print-icmp.c:517]: (warning) %d in format string (no. 1) requires 'int'
but the argument type is 'unsigned int'.
print-icmp.c