diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2022-03-01 22:32:43 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2022-03-01 22:33:48 +0100 |
commit | 8d6bef98827b9d02198ade6fd94d9f42ed302889 (patch) | |
tree | 706b53b7de892c5997548f40b91eef232371b868 /rpcapd | |
parent | 5ee0ff44d1660ab2fd3de346ed24546f77b3b6b2 (diff) |
Use "%d" to print a signed int
Fix this cppcheck warning:
rpcapd/daemon.c:2349:3: warning: %u in format string (no. 1) requires
'unsigned int' but the argument type is 'signed int'.
[invalidPrintfArgType_uint]
snprintf(errmsgbuf, PCAP_ERRBUF_SIZE,
^
Diffstat (limited to 'rpcapd')
-rw-r--r-- | rpcapd/daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c index 0742700d..362f4b9b 100644 --- a/rpcapd/daemon.c +++ b/rpcapd/daemon.c @@ -2347,7 +2347,7 @@ daemon_unpackapplyfilter(SOCKET sockctrl, SSL *ctrl_ssl, struct session *session if (bf_prog.bf_len > RPCAP_BPF_MAXINSNS) { snprintf(errmsgbuf, PCAP_ERRBUF_SIZE, - "Filter program is larger than the maximum size of %u instructions", + "Filter program is larger than the maximum size of %d instructions", RPCAP_BPF_MAXINSNS); return -2; } |