diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2022-03-01 21:52:26 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2022-03-01 21:55:59 +0100 |
commit | 34984c6da3a5b94c64750b313b45aca79b739faf (patch) | |
tree | 6a52af25d5fc4ea48972b7d020a12ec559e2feb1 /pcap-tc.c | |
parent | 4ab9e2fa3c82d05203693ef81f1aff91e9d7957a (diff) |
TurboCap: Use "%d" to print a signed int
Fix this cppcheck warning:
pcap-tc.c:1127:3: warning: %u in format string (no. 1) requires
'unsigned int' but the argument type is 'signed int'.
[invalidPrintfArgType_uint]
snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Mode %u not supported by TurboCap
devices. TurboCap only supports capture.", mode);
^
Diffstat (limited to 'pcap-tc.c')
-rw-r--r-- | pcap-tc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1124,7 +1124,7 @@ TcSetMode(pcap_t *p, int mode) { if (mode != MODE_CAPT) { - snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Mode %u not supported by TurboCap devices. TurboCap only supports capture.", mode); + snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "Mode %d not supported by TurboCap devices. TurboCap only supports capture.", mode); return -1; } |