]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-unit-util.c
install: make InstallChange enum type a proper type
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Oct 2022 09:11:53 +0000 (11:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Oct 2022 09:40:40 +0000 (11:40 +0200)
commitf8662fee2fac735385dc060f1435e4af5327138d
treef2d3c0599cc6fcd7bb095d38921be106ed593031
parent4554c178bf07ded86f9f3982f26e87afd1caf0f4
install: make InstallChange enum type a proper type

We can just make this an enum, as long as we ensure it has enough range,
which we can do by adding -ERRNO_MAX as one possible value (at least on
GNU C). We already do that at multiple other places, so let's do this
here too.
src/core/dbus-manager.c
src/shared/bus-unit-util.c
src/shared/install.c
src/shared/install.h
src/systemctl/systemctl-is-enabled.c
src/test/test-install-root.c
src/test/test-install.c
src/test/test-tables.c