diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-11-03 23:23:44 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-11-06 13:31:59 +0100 |
commit | 84b12cd02c1f11d134f00b0a066414a677a53719 (patch) | |
tree | 0e1097c01561067a7087a88cefebb7f52a69e5b3 /nDPId.c | |
parent | 93498fff02c5edecff102d895f5cd239cb1504a2 (diff) |
Fixed some SonarCloud complaints.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r-- | nDPId.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -155,7 +155,7 @@ enum nDPId_flow_state enum nDPId_flow_direction { FD_SRC2DST = 0, - FD_DST2SRC = 1, + FD_DST2SRC, FD_COUNT }; @@ -1066,7 +1066,8 @@ static void get_ip4_address_and_netmask(struct ifaddrs const * const ifaddr) static int get_ip_netmask_from_pcap_dev(char const * const pcap_dev) { int retval = 0, found_dev = 0; - int ip4_interface_avail = 0, ip6_interface_avail = 0; + int ip4_interface_avail = 0; + int ip6_interface_avail = 0; struct ifaddrs * ifaddrs = NULL; struct ifaddrs * ifa; |