From: Zbigniew Jędrzejewski-Szmek Date: Mon, 13 Apr 2020 13:04:06 +0000 (+0200) Subject: sd-bus: use STR_IN_SET() in one more place X-Git-Tag: v246-rc1~433^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b49ca3bc37bce48754f97c0e06ad5422bd70b7dd;p=thirdparty%2Fsystemd.git sd-bus: use STR_IN_SET() in one more place --- diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c index eaf230709b6..ad66d634d7e 100644 --- a/src/libsystemd/sd-bus/bus-objects.c +++ b/src/libsystemd/sd-bus/bus-objects.c @@ -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;