diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-02-21 16:30:45 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-02-22 14:15:07 +0100 |
commit | 32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5 (patch) | |
tree | ab1753525c7506a29d5af148fd99f482c18e9519 /src/systemctl/systemctl-start-unit.c | |
parent | c972880640ee19e89ce9265d8eae1b3aae190332 (diff) | |
download | systemd-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-start-unit.c')
-rw-r--r-- | src/systemctl/systemctl-start-unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-start-unit.c b/src/systemctl/systemctl-start-unit.c index 274b278d2d..590ee17194 100644 --- a/src/systemctl/systemctl-start-unit.c +++ b/src/systemctl/systemctl-start-unit.c @@ -261,7 +261,7 @@ static const char** make_extra_args(const char *extra_args[static 4]) { return extra_args; } -int start_unit(int argc, char *argv[], void *userdata) { +int verb_start(int argc, char *argv[], void *userdata) { _cleanup_(bus_wait_for_units_freep) BusWaitForUnits *wu = NULL; _cleanup_(bus_wait_for_jobs_freep) BusWaitForJobs *w = NULL; const char *method, *job_type, *mode, *one_name, *suffix = NULL; |