summaryrefslogtreecommitdiffstats
path: root/src/portable/portabled-bus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-17 10:47:30 +0100
committerLennart Poettering <lennart@poettering.net>2021-02-17 19:29:24 +0100
commitba5b6c5925aa05b861b757a66b09d3cc51c8dde7 (patch)
tree681dd73f005e9b77af5c1979cb61d505cf256813 /src/portable/portabled-bus.c
parentinstall: make UnitFileChangeType enum anonymous (diff)
downloadsystemd-ba5b6c5925aa05b861b757a66b09d3cc51c8dde7.tar.xz
systemd-ba5b6c5925aa05b861b757a66b09d3cc51c8dde7.zip
portable: make PortableChangeType enum anonymous
Same reasons as previous commit.
Diffstat (limited to 'src/portable/portabled-bus.c')
-rw-r--r--src/portable/portabled-bus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/portable/portabled-bus.c b/src/portable/portabled-bus.c
index fa143b71c0..8de8bfc247 100644
--- a/src/portable/portabled-bus.c
+++ b/src/portable/portabled-bus.c
@@ -457,8 +457,11 @@ static int reply_portable_compose_message(sd_bus_message *reply, const PortableC
return r;
for (i = 0; i < n_changes; i++) {
+ if (changes[i].type_or_errno < 0)
+ continue;
+
r = sd_bus_message_append(reply, "(sss)",
- portable_change_type_to_string(changes[i].type),
+ portable_change_type_to_string(changes[i].type_or_errno),
changes[i].path,
changes[i].source);
if (r < 0)