]> The Tcpdump Group git mirrors - libpcap/commit
DAG: Fix a condition
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 17 Jun 2020 15:11:53 +0000 (17:11 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 17 Jun 2020 15:12:20 +0000 (17:12 +0200)
commit01afa17bf96ff719931c4f7dc644381132e72456
treede8b6d9bbee4220d9222339759e582a2537047e1
parent39c7f8dd3acf3deb721ebf212c89738942eb8da2
DAG: Fix a condition

Found with cppcheck.

The warning was:
pcap-dag.c:1117:6: style: Suspicious condition (assignment + comparison);
Clarify expression with parentheses. [clarifyCondition]
  if ((dag_error = dag_config_get_uint32_attribute_ex(pd->dag_ref,
       pd->drop_attr, &stream_drop) == kDagErrNone)) {
     ^
pcap-dag.c