mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-15 05:57:26 +03:00
analyze: use strv_skip() where appropriate
This commit is contained in:
parent
0ed3da7c8c
commit
2987225ce6
@ -1340,15 +1340,16 @@ static int dump(int argc, char *argv[], void *userdata) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int cat_config(int argc, char *argv[], void *userdata) {
|
static int cat_config(int argc, char *argv[], void *userdata) {
|
||||||
char **arg;
|
char **arg, **list;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
(void) pager_open(arg_pager_flags);
|
(void) pager_open(arg_pager_flags);
|
||||||
|
|
||||||
STRV_FOREACH(arg, argv + 1) {
|
list = strv_skip(argv, 1);
|
||||||
|
STRV_FOREACH(arg, list) {
|
||||||
const char *t = NULL;
|
const char *t = NULL;
|
||||||
|
|
||||||
if (arg != argv + 1)
|
if (arg != list)
|
||||||
print_separator();
|
print_separator();
|
||||||
|
|
||||||
if (path_is_absolute(*arg)) {
|
if (path_is_absolute(*arg)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user