aboutsummaryrefslogtreecommitdiff
path: root/pcap-tc.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2022-03-01 21:52:26 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2022-03-01 21:55:59 +0100
commit34984c6da3a5b94c64750b313b45aca79b739faf (patch)
tree6a52af25d5fc4ea48972b7d020a12ec559e2feb1 /pcap-tc.c
parent4ab9e2fa3c82d05203693ef81f1aff91e9d7957a (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-tc.c b/pcap-tc.c
index 9902633a..aa28f0fe 100644
--- a/pcap-tc.c
+++ b/pcap-tc.c
@@ -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;
}