diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-13 15:04:06 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-05-03 10:55:51 +0200 |
commit | b49ca3bc37bce48754f97c0e06ad5422bd70b7dd (patch) | |
tree | ac60385da44b442f93debd0c7d97dbe9dee5e676 /src/libsystemd/sd-bus/bus-objects.c | |
parent | bus-introspect: move xml string defines into the .c file (diff) | |
download | systemd-b49ca3bc37bce48754f97c0e06ad5422bd70b7dd.tar.xz systemd-b49ca3bc37bce48754f97c0e06ad5422bd70b7dd.zip |
sd-bus: use STR_IN_SET() in one more place
Diffstat (limited to 'src/libsystemd/sd-bus/bus-objects.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-objects.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c index eaf230709b..ad66d634d7 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; |