]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: rework unit_active_state_to_glyph() to use a translation table 19255/head
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2021 21:01:25 +0000 (23:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2021 21:01:25 +0000 (23:01 +0200)
commiteeb6923d5ae68cb9d8e210dab2e5a0b61dfd28c1
treedcfa711bbd432ae815b20b8d809f1899157e2474
parenteff60d8ceaba1a34b75f9dbfd3b362024530314a
core: rework unit_active_state_to_glyph() to use a translation table

Let's make this a bit more readable by implementing this via a
translation table, indexed by the state.
src/basic/unit-def.c