diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2024-11-13 09:55:40 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2024-11-14 10:21:35 +0100 |
commit | 9105b393e1df76c9d4d11e3a75cd160a724493bd (patch) | |
tree | 738a902d279117ea45640582d9858b5e480cee8b /examples/c-captured | |
parent | 9efdecf4efa352a6046c88a945cf9ff8db1b37b9 (diff) |
Fixed some SonarCloud issues
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-captured')
-rw-r--r-- | examples/c-captured/c-captured.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/c-captured/c-captured.c b/examples/c-captured/c-captured.c index 0729d3f19..630d22256 100644 --- a/examples/c-captured/c-captured.c +++ b/examples/c-captured/c-captured.c @@ -197,7 +197,7 @@ static void decode_base64(pcap_dumper_t * const pd, static void packet_data_copy(void * dst, const void * src) { struct packet_data * const pd_dst = (struct packet_data *)dst; - struct packet_data const * const pd_src = (struct packet_data *)src; + struct packet_data const * const pd_src = (struct packet_data const *)src; *pd_dst = *pd_src; if (pd_src->base64_packet != NULL && pd_src->base64_packet_size > 0) { @@ -224,7 +224,7 @@ static void packet_data_dtor(void * elt) static void flow_packet_data_copy(void * dst, const void * src) { struct flow_packet_data * const pd_dst = (struct flow_packet_data *)dst; - struct flow_packet_data const * const pd_src = (struct flow_packet_data *)src; + struct flow_packet_data const * const pd_src = (struct flow_packet_data const *)src; *pd_dst = *pd_src; if (pd_src->base64_packet != NULL && pd_src->base64_packet_size > 0) { @@ -1175,7 +1175,7 @@ static int parse_options(int argc, char ** argv) break; case 'R': { - char * value = (optarg[0] == '~' ? optarg + 1 : optarg); + char const * const value = (optarg[0] == '~' ? optarg + 1 : optarg); nDPIsrvd_ull risk; if (perror_ull(str_value_to_ull(value, &risk), "process_risky") != CONVERSION_OK) { |