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.
This commit is contained in:
Lennart Poettering
2022-02-22 14:15:07 +01:00
parent c972880640
commit 32baf64d5a
58 changed files with 167 additions and 167 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
#include "systemctl-util.h"
#include "systemctl.h"
int switch_root(int argc, char *argv[], void *userdata) {
int verb_switch_root(int argc, char *argv[], void *userdata) {
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_free_ char *cmdline_init = NULL;
const char *root, *init;