diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-02-17 10:47:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-17 19:29:24 +0100 |
commit | ba5b6c5925aa05b861b757a66b09d3cc51c8dde7 (patch) | |
tree | 681dd73f005e9b77af5c1979cb61d505cf256813 /src/portable/portabled-bus.c | |
parent | install: make UnitFileChangeType enum anonymous (diff) | |
download | systemd-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.c | 5 |
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) |