Skip to content
Commit c069f60b authored by Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto Committed by Georges Basile Stavracas Neto
Browse files

utils: Cleanup strcmp() calls

This comes from the following warning:

```
 src/xdp-utils.c:605:12: note: add parentheses around left hand side expression to silence this warning
           !strcmp (controller, "name=systemd:") != 0 ||
           ^
```

The conversion made here is:

 * `!strcmp (controller, "name=systemd:") != 0`
 * If controller is equal to "name=system:", this will become
   `!0 != 0`
 * Expanding `!0` we have `1 != 0`
 * This evaluates to `TRUE`
 * Therefore, the original expression is merely checking if
   the strings are equal.
parent 18c0de30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment