1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-27 07:22:31 +03:00

analyze: use strv_skip() where appropriate

This commit is contained in:
Lennart Poettering 2018-11-06 12:05:26 +01:00
parent 0ed3da7c8c
commit 2987225ce6

View File

@ -1340,15 +1340,16 @@ static int dump(int argc, char *argv[], void *userdata) {
}
static int cat_config(int argc, char *argv[], void *userdata) {
char **arg;
char **arg, **list;
int r;
(void) pager_open(arg_pager_flags);
STRV_FOREACH(arg, argv + 1) {
list = strv_skip(argv, 1);
STRV_FOREACH(arg, list) {
const char *t = NULL;
if (arg != argv + 1)
if (arg != list)
print_separator();
if (path_is_absolute(*arg)) {