core: rename (and modernize) bus_unit_check_load_state() → bus_unit_validate_load_state()
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jun 2018 15:30:43 +0000 (17:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Jun 2018 10:53:12 +0000 (12:53 +0200)
commite49da001c466d0d70ec5fb727bb6b886ba595c0f
tree6dc7c43a7a0a12588d5bdf3a92c5f731bda7d0b2
parentc602fd0f194b48ac366010de82d788945aa69856
core: rename (and modernize) bus_unit_check_load_state() → bus_unit_validate_load_state()

Let's use a switch() statement, cover more cases with pretty messages.
Also let's rename it to "validate", as that's more specific that
"check", as it implies checking for a "valid"/"good" state, which is
what this function does.
src/core/dbus-manager.c
src/core/dbus-unit.c
src/core/dbus-unit.h
src/core/transaction.c