sd-bus: use STR_IN_SET() in one more place

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-05-03 10:55:51 +02:00
parent 2b6a1d155d
commit b49ca3bc37
+4 -4
View File
@@ -827,10 +827,10 @@ static int property_get_all_callbacks_run(
if (r < 0)
return r;
found_interface = !iface ||
streq(iface, "org.freedesktop.DBus.Properties") ||
streq(iface, "org.freedesktop.DBus.Peer") ||
streq(iface, "org.freedesktop.DBus.Introspectable");
found_interface = !iface || STR_IN_SET(iface,
"org.freedesktop.DBus.Properties",
"org.freedesktop.DBus.Peer",
"org.freedesktop.DBus.Introspectable");
LIST_FOREACH(vtables, c, first) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;