diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-07 20:22:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-02-07 20:22:09 +0100 |
commit | 80cb9da358de5601f5d23c8e5ed9a43eb3506f7d (patch) | |
tree | 35d71c7a82bd78a221fbb9e8af56033536f7e433 /src | |
parent | dfead90d936d4c4cbe4f164f35def7399d80817c (diff) |
install: remove some unused parameters from various functions in install.c
No need to pass what we don't use.
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/install.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/shared/install.c b/src/shared/install.c index b938507587..f25ed685f6 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -685,7 +685,6 @@ static int find_symlinks_fd( int fd, const char *path, const char *config_path, - const LookupPaths *lp, bool *same_name_link) { _cleanup_closedir_ DIR *d = NULL; @@ -696,7 +695,6 @@ static int find_symlinks_fd( assert(fd >= 0); assert(path); assert(config_path); - assert(lp); assert(same_name_link); d = fdopendir(fd); @@ -730,7 +728,7 @@ static int find_symlinks_fd( } /* This will close nfd, regardless whether it succeeds or not */ - q = find_symlinks_fd(root_dir, name, nfd, p, config_path, lp, same_name_link); + q = find_symlinks_fd(root_dir, name, nfd, p, config_path, same_name_link); if (q > 0) return 1; if (r == 0) @@ -808,7 +806,6 @@ static int find_symlinks( const char *root_dir, const char *name, const char *config_path, - const LookupPaths *lp, bool *same_name_link) { int fd; @@ -825,11 +822,10 @@ static int find_symlinks( } /* This takes possession of fd and closes it */ - return find_symlinks_fd(root_dir, name, fd, config_path, config_path, lp, same_name_link); + return find_symlinks_fd(root_dir, name, fd, config_path, config_path, same_name_link); } static int find_symlinks_in_scope( - UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *state) { @@ -839,15 +835,13 @@ static int find_symlinks_in_scope( char **p; int r; - assert(scope >= 0); - assert(scope < _UNIT_FILE_SCOPE_MAX); assert(paths); assert(name); STRV_FOREACH(p, paths->search_path) { bool same_name_link = false; - r = find_symlinks(paths->root_dir, name, *p, paths, &same_name_link); + r = find_symlinks(paths->root_dir, name, *p, &same_name_link); if (r < 0) return r; if (r > 0) { @@ -2567,7 +2561,7 @@ static int unit_file_lookup_state( break; } - r = find_symlinks_in_scope(scope, paths, i->name, &state); + r = find_symlinks_in_scope(paths, i->name, &state); if (r < 0) return r; if (r == 0) { |