]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: make UnitFileChangeType enum anonymous
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Feb 2021 09:38:12 +0000 (10:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Feb 2021 18:29:24 +0000 (19:29 +0100)
commit93419a9601a0874a8304d0b6fe11a2f5c40c48b6
treee3e6c6656c29ba04599082831d89f6d0ea23e07a
parent0761da386a6cb0ced3721f2dee123fd983c71178
install: make UnitFileChangeType enum anonymous

We almost never use the named enum type, in almost all cases we use
"int" instead, since we overload it with negative errnos. To simplify
things, let's use "int" really everywhere.

Moreover, let's rename the fields for this enum to "type_or_errno", to
make the overloading clear. And let's ad some assertions that things are
in the right range.
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