summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl-is-active.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-02-21 16:30:45 +0100
committerLennart Poettering <lennart@poettering.net>2022-02-22 14:15:07 +0100
commit32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5 (patch)
treeab1753525c7506a29d5af148fd99f482c18e9519 /src/systemctl/systemctl-is-active.c
parentc972880640ee19e89ce9265d8eae1b3aae190332 (diff)
downloadsystemd-32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5.tar.gz
systemctl: systematically rename verb entrypoints verb_xyz()
Let's clean up our function naming a bit, and always name the verb_xyz(), where the xyz maps to the command line verb as closely as possible. No actual code changes, just an attempt to make the systemctl sources a bit more systematic, and less surprising.
Diffstat (limited to 'src/systemctl/systemctl-is-active.c')
-rw-r--r--src/systemctl/systemctl-is-active.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-is-active.c b/src/systemctl/systemctl-is-active.c
index d83736e94a..e1acf79702 100644
--- a/src/systemctl/systemctl-is-active.c
+++ b/src/systemctl/systemctl-is-active.c
@@ -43,7 +43,7 @@ static int check_unit_generic(int code, const UnitActiveState good_states[], int
return found ? 0 : code;
}
-int check_unit_active(int argc, char *argv[], void *userdata) {
+int verb_is_active(int argc, char *argv[], void *userdata) {
static const UnitActiveState states[] = {
UNIT_ACTIVE,
UNIT_RELOADING,
@@ -53,7 +53,7 @@ int check_unit_active(int argc, char *argv[], void *userdata) {
return check_unit_generic(EXIT_PROGRAM_NOT_RUNNING, states, ELEMENTSOF(states), strv_skip(argv, 1));
}
-int check_unit_failed(int argc, char *argv[], void *userdata) {
+int verb_is_failed(int argc, char *argv[], void *userdata) {
static const UnitActiveState states[] = {
UNIT_FAILED,
};