summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-03-07 19:28:11 +0100
committerLennart Poettering <lennart@poettering.net>2022-03-18 10:22:20 +0100
commitd29cc4d6e1c04b89c3abf3fdb4bcad9f2715b451 (patch)
tree158b7aaa5d81b1d40cbfc669230d6169cb5b7cab /src/nspawn/nspawn.c
parentshared/install: drop unnecessary casts (diff)
downloadsystemd-d29cc4d6e1c04b89c3abf3fdb4bcad9f2715b451.tar.xz
systemd-d29cc4d6e1c04b89c3abf3fdb4bcad9f2715b451.zip
tree-wide: use strv_contains() in more places
Diffstat (limited to 'src/nspawn/nspawn.c')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 7fe061899c..ff4ccde1f8 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -4239,7 +4239,7 @@ static int nspawn_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t r
if (!tags)
return log_oom();
- if (strv_find(tags, "READY=1")) {
+ if (strv_contains(tags, "READY=1")) {
r = sd_notify(false, "READY=1\n");
if (r < 0)
log_warning_errno(r, "Failed to send readiness notification, ignoring: %m");