]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/bus-util.c
util-lib: use FLAGS_SET() where appropriate
[thirdparty/systemd.git] / src / shared / bus-util.c
index 1911dd0ce642f875db511e9b5c56da66752d1942..00120e987414e4d4c7b683d71cbecea7d85414ac 100644 (file)
@@ -756,7 +756,7 @@ static int bus_print_property(const char *name, const char *expected_value, sd_b
 
                         if ((u & NAMESPACE_FLAGS_ALL) == 0)
                                 result = "yes";
-                        else if ((u & NAMESPACE_FLAGS_ALL) == NAMESPACE_FLAGS_ALL)
+                        else if (FLAGS_SET(u, NAMESPACE_FLAGS_ALL))
                                 result = "no";
                         else {
                                 r = namespace_flags_to_string(u, &s);