summaryrefslogtreecommitdiffstats
path: root/src/shared/install.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-01 13:18:44 +0200
committerLuca Boccassi <bluca@debian.org>2024-06-12 00:17:21 +0200
commite9e77e443d55bf4c66e11bc0c339292a3dd4fa8d (patch)
tree66e72a02f318172b38cd12c6366801619e3f23df /src/shared/install.c
parentshared/install: modernize install_info_add (diff)
downloadsystemd-e9e77e443d55bf4c66e11bc0c339292a3dd4fa8d.tar.xz
systemd-e9e77e443d55bf4c66e11bc0c339292a3dd4fa8d.zip
install,dbus-manager: make unit_file_* take (char* const*) for strv
Diffstat (limited to 'src/shared/install.c')
-rw-r--r--src/shared/install.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index e2072b45ba..793f2f6ecd 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -2306,7 +2306,7 @@ int unit_file_mask(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **names,
+ char * const *names,
InstallChange **changes,
size_t *n_changes) {
@@ -2349,7 +2349,7 @@ int unit_file_unmask(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **names,
+ char * const *names,
InstallChange **changes,
size_t *n_changes) {
@@ -2461,7 +2461,7 @@ int unit_file_link(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **files,
+ char * const *files,
InstallChange **changes,
size_t *n_changes) {
@@ -2563,7 +2563,7 @@ static int path_shall_revert(const LookupPaths *lp, const char *path) {
int unit_file_revert(
RuntimeScope scope,
const char *root_dir,
- char **names,
+ char * const *names,
InstallChange **changes,
size_t *n_changes) {
@@ -2720,7 +2720,7 @@ int unit_file_add_dependency(
RuntimeScope scope,
UnitFileFlags file_flags,
const char *root_dir,
- char **names,
+ char * const *names,
const char *target,
UnitDependency dep,
InstallChange **changes,
@@ -2792,7 +2792,7 @@ static int do_unit_file_enable(
RuntimeScope scope,
UnitFileFlags flags,
const char *config_path,
- char **names_or_paths,
+ char * const *names_or_paths,
InstallChange **changes,
size_t *n_changes) {
@@ -2823,7 +2823,7 @@ int unit_file_enable(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **names_or_paths,
+ char * const *names_or_paths,
InstallChange **changes,
size_t *n_changes) {
@@ -2849,7 +2849,7 @@ static int do_unit_file_disable(
RuntimeScope scope,
UnitFileFlags flags,
const char *config_path,
- char **names,
+ char * const *names,
InstallChange **changes,
size_t *n_changes) {
@@ -2891,7 +2891,7 @@ int unit_file_disable(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **files,
+ char * const *files,
InstallChange **changes,
size_t *n_changes) {
@@ -2915,7 +2915,7 @@ int unit_file_disable(
static int normalize_linked_files(
RuntimeScope scope,
const LookupPaths *lp,
- char **names_or_paths,
+ char * const *names_or_paths,
char ***ret_names,
char ***ret_files) {
@@ -2974,7 +2974,7 @@ int unit_file_reenable(
RuntimeScope scope,
UnitFileFlags flags,
const char *root_dir,
- char **names_or_paths,
+ char * const *names_or_paths,
InstallChange **changes,
size_t *n_changes) {
@@ -3491,7 +3491,7 @@ static int execute_preset(
InstallContext *minus,
const LookupPaths *lp,
const char *config_path,
- char **files,
+ char * const *files,
UnitFilePresetMode mode,
InstallChange **changes,
size_t *n_changes) {
@@ -3590,7 +3590,7 @@ int unit_file_preset(
RuntimeScope scope,
UnitFileFlags file_flags,
const char *root_dir,
- char **names,
+ char * const *names,
UnitFilePresetMode mode,
InstallChange **changes,
size_t *n_changes) {