aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-01-19 15:46:10 -0800
committerGuy Harris <gharris@sonic.net>2021-01-19 15:46:10 -0800
commit6b85987e4aa9171d7a275abba7433ed05549d89a (patch)
treeb99955a82ad4a7e857f6eb8f64c0f4f6e4758718 /capture_opts.c
parentf92206ab515d285c6e4964547e8370c09417007b (diff)
Squelch "Clarify calculation precedence" warning from cppcheck.
For A & B ? C : D put "A & B" in parentheses, to clarify the precedence.
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 1fb64fd72d..48a7a81b1d 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -1010,7 +1010,7 @@ capture_opts_print_if_capabilities(if_capabilities_t *caps, char *name, int quer
if (queries & CAPS_QUERY_LINK_TYPES) {
if (caps->can_set_rfmon)
printf("Data link types of interface %s when %sin monitor mode (use option -y to set):\n",
- name, queries & CAPS_MONITOR_MODE ? "" : "not ");
+ name, (queries & CAPS_MONITOR_MODE) ? "" : "not ");
else
printf("Data link types of interface %s (use option -y to set):\n", name);
for (lt_entry = caps->data_link_types; lt_entry != NULL;