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-mount.c | |
parent | core: really skip automatic restart when a JOB_STOP job is pending (diff) | |
download | systemd-32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5.tar.xz systemd-32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5.zip |
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-mount.c')
-rw-r--r-- | src/systemctl/systemctl-mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-mount.c b/src/systemctl/systemctl-mount.c index 04e626550d..d9ad332b2f 100644 --- a/src/systemctl/systemctl-mount.c +++ b/src/systemctl/systemctl-mount.c @@ -7,7 +7,7 @@ #include "systemctl-util.h" #include "systemctl.h" -int mount_bind(int argc, char *argv[], void *userdata) { +int verb_bind(int argc, char *argv[], void *userdata) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_free_ char *n = NULL; sd_bus *bus; @@ -41,7 +41,7 @@ int mount_bind(int argc, char *argv[], void *userdata) { return 0; } -int mount_image(int argc, char *argv[], void *userdata) { +int verb_mount_image(int argc, char *argv[], void *userdata) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; const char *unit = argv[1], *src = argv[2], *dest = argv[3]; _cleanup_(sd_bus_message_unrefp) sd_bus_message *m = NULL; |