strcmp is kind of a confusing function in that it returns
non-zero when the strings are not equal. That is
especially counterintuitive when this non-zero value is
treated as a TRUE boolean.
This commit just adds some != 0's to a couple of strcmp
calls for clarity.
{
const char *subsystem;
- if (strcmp (action, "add") && strcmp (action, "change"))
+ if (strcmp (action, "add") != 0 && strcmp (action, "change") != 0)
return false;
if (manager->local_console_managed && manager->local_console_is_text) {